Function at 0x519a30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x48
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
mov ebx, dword [esp + 0x50]
push ebp
mov ebp, ecx
mov dword [esp + 0x24], ebx
push esi
push edi
mov dword [esp + 0x28], ebp
cmp dword [ebp + 0x6486a8], 2
lea edi, [ebp + 0x6496f0]
mov dword [esp + 0x1c], edi
je 0x519bc2
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
cmp eax, dword [ebp + 0x64b7c8]
je 0x519a9b
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
mov eax, dword [esp + 0x10]
jmp 0x519a9f
mov dword [esp + 0x1c], edi
push eax
push dword [ebp + 0x64b7b8]
mov ecx, ebp
mov dword [ebp + 0x64b7c8], eax
call fcn.00510bd0
mov ecx, dword [edi]
mov dword [esp + 0x14], eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
test al, al
jne 0x519b7a
mov eax, dword [edi]
push 0
push dword [esp + 0x18]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
test al, al
jne 0x519b7a
nop
cmp dword [ebp + 0x64b780], 0
mov esi, dword [esp + 0x14]
jne 0x519b11
push esi
mov ecx, 0x5b68fc
call fcn.0047b330
push 0x12
mov ecx, ebp
call fcn.00512610
push dword [esp + 0x10]
mov ecx, ebp
call fcn.0050f650
cmp eax, 9
je 0x519ba8
mov ecx, dword [ebp + 0x6486a8]
cmp ecx, 1
je 0x519b35
cmp ecx, 2
jne 0x519b3e
cmp eax, 3
je 0x519c01
push esi
call fcn.00525b95
add esp, 4
mov ecx, ebp
push dword [esp + 0x10]
push dword [ebp + 0x64b7b8]
call fcn.00510bd0
mov ecx, eax
mov eax, dword [edi]
push 0
mov dword [esp + 0x18], ecx
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
test al, al
je 0x519af0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x519b8b
push eax
call fcn.00525b95
add esp, 4
mov esi, dword [edi]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x28]
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
jmp 0x519bc6
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4
mov dword [esp + 0x1c], edi
cmp dword [ebp + 0x6486a8], 2
je 0x519c1b
push 0x557a74
push edi
mov ecx, ebp
call fcn.00515310
test eax, eax
jne 0x519c1b
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
push dword [ebp + 0x64b794]
mov ecx, 0x5b68fc
call fcn.0047a9d0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4
mov eax, dword [edi]
push 0x1a
mov esi, dword [eax + 0xc]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
cmp eax, 0x1a
je 0x519c6c
cmp dword [ebp + 0x6486a8], 2
je 0x519c52
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4
push 0x68
call fcn.00525bb0
mov esi, eax
add esp, 4
mov eax, dword [ebp + 0x6486a8]
test esi, esi
jne 0x519cb2
cmp eax, 2
je 0x519c98
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
mov ecx, edi
call esi
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4
movzx ecx, byte [esp + 0x39]
movzx eax, byte [esp + 0x38]
movzx edx, byte [esp + 0x3b]
shl cx, 8
or cx, ax
shl dx, 8
movzx eax, byte [esp + 0x3a]
or dx, ax
mov dword [esp + 0x10], ecx
movzx eax, byte [esp + 0x3c]
mov word [esi + 2], cx
movzx ecx, byte [esp + 0x3d]
shl cx, 8
or cx, ax
mov word [esi + 0x2e], dx
movzx eax, byte [esp + 0x41]
shl ax, 8
mov word [esp + 0x14], cx
mov word [esi + 6], cx
movzx ecx, ax
movzx eax, byte [esp + 0x40]
or ecx, eax
movzx eax, byte [esp + 0x3f]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
movzx eax, byte [esp + 0x3e]
or ecx, eax
movzx eax, byte [esp + 0x45]
shl ax, 8
mov dword [esi + 8], ecx
movzx ecx, ax
movzx eax, byte [esp + 0x44]
or ecx, eax
movzx eax, byte [esp + 0x43]
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [esp + 0x42]
or ecx, eax
movzx eax, byte [esp + 0x4e]
mov dword [esi + 0xc], ecx
movzx ecx, byte [esp + 0x4f]
shl cx, 8
or cx, ax
movzx eax, byte [esp + 0x50]
mov word [esp + 0x20], cx
mov word [esi + 0x20], cx
movzx ecx, byte [esp + 0x51]
shl cx, 8
or cx, ax
movzx eax, cx
mov dword [esp + 0x34], eax
movzx eax, cx
mov dword [esp + 0x24], eax
movzx eax, ax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x6486a8]
mov word [esi + 0x22], cx
cmp eax, 2
jne 0x519e15
movzx eax, byte [esp + 0x49]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x48]
or ecx, eax
mov dword [esi + 0x14], 0
movzx eax, byte [esp + 0x47]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
mov dword [esi + 0x1c], 0
movzx eax, byte [esp + 0x46]
or ecx, eax
movzx eax, byte [esp + 0x4d]
shl ax, 8
mov dword [esi + 0x10], ecx
movzx ecx, ax
movzx eax, byte [esp + 0x4c]
or ecx, eax
movzx eax, byte [esp + 0x4b]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
movzx eax, byte [esp + 0x4a]
or ecx, eax
mov eax, dword [ebp + 0x6486a8]
mov dword [esi + 0x18], ecx
mov ecx, 0x800
test word [ebx + 4], cx
je 0x519e26
or edx, ecx
mov word [esi + 0x2e], dx
cmp eax, 2
jne 0x519e7a
mov ecx, dword [esp + 0x10]
mov eax, ecx
and eax, 0xff00
cmp eax, 0x2800
jbe 0x519e69
mov eax, dword [ebp + 0x64b794]
mov ecx, 0x5b68fc
push eax
push eax
call fcn.0047b9a0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4
cmp cl, 0x64
ja 0x519e3d
mov eax, 0xc8
cmp word [esp + 0x14], ax
ja 0x519e3d
movzx eax, word [esp + 0x20]
inc eax
mov dword [esi + 0x3c], 0
push eax
mov dword [esi + 0x4c], 0
mov dword [esp + 0x34], eax
call fcn.00525bb0
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esi + 0x48], eax
test eax, eax
je 0x519c98
cmp word [esp + 0x34], 0
mov eax, dword [esp + 0x18]
movzx eax, ax
mov dword [esp + 0x14], eax
je 0x519ed7
push eax
call fcn.00525bb0
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esi + 0x3c], eax
test eax, eax
je 0x519c98
jmp 0x519edf
mov dword [esp + 0x18], 0
mov eax, dword [edi]
mov edi, dword [eax + 0xc]
mov ecx, edi
movzx eax, word [esp + 0x20]
push eax
push dword [esp + 0x14]
call dword [0x541740]
mov ecx, dword [esp + 0x24]
call edi
movzx ecx, word [esp + 0x20]
cmp eax, ecx
jne 0x519c52
cmp word [esp + 0x24], 0
je 0x519f3e
mov eax, dword [esp + 0x1c]
push dword [esp + 0x14]
push dword [esp + 0x1c]
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x541740]
mov ecx, dword [esp + 0x24]
call edi
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x519c52
jmp 0x519f42
mov ecx, dword [esp + 0x14]
movzx edx, word [esp + 0x20]
mov eax, dword [esp + 0x10]
mov byte [edx + eax], 0
mov edx, dword [esp + 0x18]
add ecx, edx
mov dword [ebp + 0x64b78c], 0
test edx, edx
je 0x51a127
lea eax, [ecx - 4]
mov dword [esp + 0x1c], ecx
mov edi, edx
cmp edx, eax
jae 0x51a127
jmp 0x519f80
movzx ecx, byte [edi + 1]
movzx eax, byte [edi]
shl cx, 8
or cx, ax
cmp cx, 1
je 0x519fb6
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
add ecx, 4
add edi, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 4]
cmp edi, eax
jb 0x519f80
jmp 0x51a127
test edi, edi
je 0x51a123
add edi, 4
mov dword [ebp + 0x64b78c], 1
cmp dword [esi + 0x18], 0xffffffff
mov dword [esp + 0x14], edi
jne 0x51a071
cmp dword [esi + 0x1c], 0
jne 0x51a071
movzx eax, byte [edi + 7]
xor ebx, ebx
cdq
mov ebp, eax
mov ecx, edx
movzx eax, byte [edi + 6]
shld ecx, ebp, 8
cdq
or ecx, edx
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 5]
shld ecx, ebp, 8
cdq
or ecx, edx
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 4]
shld ecx, ebp, 8
cdq
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 3]
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 2]
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 1]
cdq
or ecx, eax
or edi, edx
shld edi, ecx, 8
or ebp, edi
shl ecx, 8
mov edi, dword [esp + 0x14]
or ebx, ecx
movzx eax, byte [edi]
cdq
or ebx, eax
or ebp, edx
add edi, 8
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebp
mov dword [esp + 0x14], edi
cmp dword [esi + 0x10], 0xffffffff
jne 0x51a10c
cmp dword [esi + 0x14], 0
jne 0x51a10c
movzx eax, byte [edi + 7]
xor ebx, ebx
cdq
mov ebp, eax
mov ecx, edx
movzx eax, byte [edi + 6]
shld ecx, ebp, 8
cdq
or ecx, edx
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 5]
shld ecx, ebp, 8
cdq
or ecx, edx
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 4]
shld ecx, ebp, 8
cdq
shl ebp, 8
or ebp, eax
movzx eax, byte [edi + 3]
cdq
mov ecx, eax
mov edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 2]
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 1]
cdq
or ecx, eax
or edi, edx
mov eax, dword [esp + 0x14]
shld edi, ecx, 8
shl ecx, 8
or ebp, edi
movzx eax, byte [eax]
or ebx, ecx
cdq
or ebx, eax
or ebp, edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebp
mov ebp, dword [esp + 0x28]
mov eax, 1
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x51a12d
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x64b78c]
movzx edi, word [esi + 0x2e]
mov dword [ebp + 0x64b78c], eax
mov ax, word [ebx]
mov word [esi], ax
test edi, 0x800
je 0x51a179
mov edi, dword [esp + 0x10]
mov ecx, ebp
push edi
mov dword [esi + 0x4c], edi
call fcn.005113c0
test eax, eax
jne 0x51a171
push edi
call fcn.0052cc68
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x519c98
jmp 0x51a2ad
mov dword [esi + 0x48], eax
jmp 0x51a2ad
test edx, edx
je 0x51a2b1
lea edi, [ecx - 4]
cmp edx, edi
jae 0x51a2ad
lea esp, [esp]
movzx ecx, byte [edx + 1]
movzx eax, byte [edx]
shl cx, 8
or cx, ax
mov eax, 0x7075
cmp cx, ax
je 0x51a1c3
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
add edx, 4
shl ecx, 8
or ecx, eax
add edx, ecx
cmp edx, edi
jb 0x51a190
jmp 0x51a2ad
test edx, edx
je 0x51a2ad
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl cx, 8
or cx, ax
cmp byte [edx + 4], 1
movzx eax, cx
mov dword [esp + 0x28], eax
ja 0x51a2ad
movzx ecx, byte [edx + 8]
movzx eax, byte [edx + 7]
mov edi, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
add edx, 9
mov dword [esp + 0x2c], ecx
mov ecx, edi
mov dword [esp + 0x24], edx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51a220
sub ecx, edx
push ecx
push edi
push 0xffffffffffffffff
call fcn.004761b0
not eax
cmp eax, dword [esp + 0x2c]
jne 0x51a2ad
mov eax, dword [esp + 0x28]
add eax, 0xfffffffb
movzx eax, ax
mov dword [esp + 0x10], eax
test ax, ax
jne 0x51a277
push dword [esp + 0x30]
call fcn.00525bb0
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x51a2ad
mov edx, eax
mov cl, byte [edi]
lea edi, [edi + 1]
mov byte [edx], cl
lea edx, [edx + 1]
test cl, cl
jne 0x51a263
mov edi, dword [esp + 0x30]
jmp 0x51a2aa
movzx eax, ax
inc eax
push eax
call fcn.00525bb0
mov edi, eax
add esp, 4
test edi, edi
je 0x51a2ad
mov ecx, dword [esp + 0x10]
movzx eax, cx
push eax
push dword [esp + 0x28]
push edi
call fcn.005299f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
movzx eax, cx
mov byte [eax + edi], 0
mov dword [esi + 0x4c], edi
movzx edi, word [esi + 0x2e]
movzx ecx, word [esi]
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004df5c0
test al, al
je 0x51a2d0
mov eax, dword [esi + 0x48]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
cmp dword [ebp + 0x6486a8], 2
jne 0x51a310
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov word [esi + 4], di
mov dword [ebx + 0x50], 0
mov word [ebx + 4], di
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
jmp 0x51a328
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 0x4c]
mov ecx, ebp
test eax, eax
je 0x51a339
push eax
call fcn.0051bf10
jmp 0x51a341
push dword [esi + 0x48]
call fcn.0051bc60
mov dword [ebx + 0x54], eax
cmp dword [ebp + 0x6486a8], 3
jne 0x51a3a3
mov ecx, dword [ebx + 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51a353
push dword [esi + 0x48]
sub ecx, edx
movzx eax, cx
mov word [ebx + 0x20], ax
mov word [esi + 0x20], ax
call fcn.00525b95
push dword [ebx + 0x48]
call fcn.0052cc68
add esp, 8
mov dword [esi + 0x48], eax
test eax, eax
je 0x519c98
push dword [esi + 0x4c]
call fcn.00525b95
mov eax, dword [ebx + 0x4c]
add esp, 4
test eax, eax
je 0x51a3a0
push eax
call fcn.0052cc68
add esp, 4
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0x64b7dc]
mov dword [ebx + 0x28], eax
mov ecx, dword [ebp + 0x64b824]
mov eax, dword [ebp + 0x64b820]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
mov ecx, dword [ebp + 0x6486a8]
mov dword [esp + 0x18], ecx
cmp ecx, 2
je 0x51a401
movzx eax, word [ebx + 4]
mov dword [esp + 0x18], ecx
test al, 1
jne 0x51a401
and eax, 0xfff7
mov word [ebx + 4], ax
mov word [esi + 4], ax
mov eax, 0xfff7
and word [esi + 0x2e], ax
mov ax, word [esi + 0x2e]
mov word [ebx + 0x2e], ax
mov eax, dword [ebp + 0x6486a8]
mov dword [esp + 0x18], eax
test byte [ebx + 0x2e], 8
mov dword [esp + 0x10], 0
je 0x51a428
cmp dword [ebp + 0x64b78c], 0
mov dword [esp + 0x10], 0x18
jne 0x51a428
mov dword [esp + 0x10], 0x10
movzx eax, word [esi + 0x22]
cdq
mov ecx, eax
mov edi, edx
movzx eax, word [esi + 0x20]
cdq
add ecx, eax
adc edi, edx
add ecx, dword [esp + 0x10]
adc edi, 0
add ecx, dword [ebx + 0x10]
adc edi, dword [ebx + 0x14]
add ecx, dword [ebp + 0x64b7b0]
adc edi, dword [ebp + 0x64b7b4]
add ecx, 0x1e
mov dword [ebp + 0x64b7b0], ecx
adc edi, 0
cmp dword [esp + 0x18], 2
mov dword [ebp + 0x64b7b4], edi
jne 0x51a474
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
jmp 0x51a47a
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
push 0
push esi
mov ecx, ebp
call fcn.005165f0
test eax, eax
je 0x51a4a2
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4
cmp dword [ebp + 0x6486a8], 2
jne 0x51a4bb
test byte [esi + 0x2e], 8
je 0x51a4bb
mov eax, 0xfffffffe
or ecx, 0xffffffff
jmp 0x51a4c1
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.0050fc10
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 9
jne 0x51a51d
cmp word [esi + 0x22], 0
je 0x51a4e7
push dword [esi + 0x3c]
call fcn.00525b95
add esp, 4
cmp word [esi + 0x20], 0
je 0x51a4f9
push dword [esi + 0x48]
call fcn.00525b95
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x51a509
push eax
call fcn.00525b95
add esp, 4
push esi
call fcn.00525b95
add esp, 4
mov ecx, ebp
push 9
call fcn.00512610
jmp 0x51a526
cmp edi, 2
je 0x51a765
cmp dword [ebp + 0x64b760], 0
lea eax, [ebp + 0x64b760]
jne 0x51a757
cmp dword [ebp + 0x6486a8], 2
jne 0x51a582
test byte [ebx + 4], 8
je 0x51a590
cmp dword [ebp + 0x64b764], 0
je 0x51a68e
mov eax, dword [ebp + 0x64b768]
mov ecx, dword [ebp + 0x64b774]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x64b770]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x64b778]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp + 0x64b77c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
test byte [ebx + 4], 8
je 0x51a590
push esi
mov ecx, ebp
call fcn.005164b0
cmp dword [ebp + 0x64b828], 1
jne 0x51a5ca
mov ecx, dword [ebp + 0x64b7d8]
cmp ecx, dword [ebp + 0x64b7dc]
je 0x51a5ca
push dword [ebp + 0x64b810]
lea eax, [ebp + 0x64a728]
push eax
push ecx
mov ecx, ebp
call fcn.00510b30
push dword [ebp + 0x64b810]
call fcn.00525b95
add esp, 4
cmp dword [ebp + 0x6486a8], 2
jne 0x51a6e5
movzx eax, word [esi + 2]
mov ecx, dword [esi + 0x1c]
mov word [ebx + 2], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
movzx eax, word [esi + 0x2e]
mov word [ebx + 0x2e], ax
mov word [ebx + 4], ax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebx + 0x10], eax
movzx eax, word [esi + 0x20]
mov dword [ebx + 0x14], ecx
movzx ecx, word [esi + 0x22]
mov word [ebx + 0x20], ax
mov eax, dword [esi + 0x3c]
mov word [ebx + 0x22], cx
mov dword [ebx + 0x3c], eax
mov word [ebx + 0x24], cx
mov dword [ebx + 0x40], 0
test cx, cx
je 0x51a670
lea eax, [ecx + 1]
push eax
call fcn.00525bb0
add esp, 4
mov dword [ebx + 0x40], eax
test eax, eax
je 0x519c98
movzx ecx, word [esi + 0x22]
push ecx
push dword [esi + 0x3c]
push eax
call fcn.0051f6b0
movzx ecx, word [esi + 0x22]
add esp, 0xc
mov eax, dword [ebx + 0x40]
mov byte [ecx + eax], 0
xor eax, eax
mov word [ebx + 0x26], ax
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
jmp 0x51a722
cmp word [esi + 0x22], 0
je 0x51a6a0
push dword [esi + 0x3c]
call fcn.00525b95
add esp, 4
cmp word [esi + 0x20], 0
je 0x51a6b2
push dword [esi + 0x48]
call fcn.00525b95
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x51a6c2
push eax
call fcn.00525b95
add esp, 4
push esi
call fcn.00525b95
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4
cmp word [esi + 0x22], 0
je 0x51a6f7
push dword [esi + 0x3c]
call fcn.00525b95
add esp, 4
cmp word [esi + 0x20], 0
je 0x51a709
push dword [esi + 0x48]
call fcn.00525b95
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x51a719
push eax
call fcn.00525b95
add esp, 4
push esi
call fcn.00525b95
add esp, 4
cmp dword [ebp + 0x6486a8], 2
jne 0x51a740
cmp edi, 0xb
jne 0x51a740
push dword [ebp + 0x64b794]
mov ecx, 0x5b68fc
call fcn.0047a9d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4
test edi, edi
jne 0x51a76f
mov dword [esp + 0x10], 3
jmp 0x51a76f
lea eax, [ebp + 0x64b760]
mov dword [esp + 0x10], edi
cmp dword [ebp + 0x6486a8], 2
jne 0x51a7c9
mov edi, dword [ebp + 0x6486b8]
push 0
push dword [ebp + 0x64b81c]
mov dword [eax], 0
push dword [ebp + 0x64b818]
mov edi, dword [edi + 0x10]
mov ecx, edi
call dword [0x541740]
lea ecx, [ebp + 0x6486b8]
call edi
mov eax, dword [ebp + 0x64b818]
mov ecx, dword [ebp + 0x64b81c]
mov dword [ebp + 0x64b820], eax
mov dword [ebp + 0x64b824], ecx
mov dword [ebp + 0x64b7b0], eax
mov dword [ebp + 0x64b7b4], ecx
cmp word [esi + 0x22], 0
je 0x51a7db
push dword [esi + 0x3c]
call fcn.00525b95
add esp, 4
cmp word [esi + 0x20], 0
je 0x51a7ed
push dword [esi + 0x48]
call fcn.00525b95
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x51a7fd
push eax
call fcn.00525b95
add esp, 4
push esi
call fcn.00525b95
mov ecx, dword [esp + 0x58]
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x48
ret 4