Function at 0x516a80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
mov dword [esp + 0x24], eax
mov ebp, ecx
mov eax, dword [esp + 0x50]
push esi
push edi
mov dword [esp + 0x18], eax
lea ebx, [ebp + 0x6496f0]
mov edi, dword [eax + 0x28]
mov dword [esp + 0x1c], edi
cmp edi, dword [ebp + 0x64b7c8]
je 0x516aca
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
push edi
push dword [ebp + 0x64b7b8]
mov ecx, ebp
mov dword [ebp + 0x64b7c8], edi
call fcn.00510bd0
mov ecx, dword [ebx]
mov edi, eax
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
test al, al
jne 0x516b55
mov eax, dword [ebx]
push 0
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
test al, al
jne 0x516b55
lea ecx, [ecx]
mov esi, dword [esp + 0x1c]
mov ecx, ebp
push esi
call fcn.0050f650
test eax, eax
jne 0x516bcb
push edi
call fcn.00525b95
add esp, 4
mov ecx, ebp
push esi
push dword [ebp + 0x64b7b8]
call fcn.00510bd0
mov edi, eax
mov eax, dword [ebx]
push 0
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
test al, al
je 0x516b10
test edi, edi
je 0x516b62
push edi
call fcn.00525b95
add esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [ebx]
push 0
push dword [eax + 0x34]
mov esi, dword [esi + 0x10]
mov ecx, esi
push dword [eax + 0x30]
call dword [0x541740]
mov ecx, ebx
call esi
push 0x557a74
push ebx
mov ecx, ebp
call fcn.00515310
mov esi, dword [ebx]
test eax, eax
jne 0x516be5
mov esi, dword [esi + 8]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
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 + 0x3c]
xor ecx, esp
call fcn.0051dca8
add esp, 0x40
ret 8
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0051dca8
add esp, 0x40
ret 8
mov esi, dword [esi + 0xc]
lea eax, [esp + 0x30]
push 0x1a
push eax
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
cmp eax, 0x1a
je 0x516c2b
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0051dca8
add esp, 0x40
ret 8
push 0x68
call fcn.00525bb0
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
jne 0x516c6a
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0051dca8
add esp, 0x40
ret 8
movzx ecx, byte [esp + 0x31]
movzx eax, byte [esp + 0x30]
shl cx, 8
or cx, ax
movzx edx, byte [esp + 0x47]
movzx eax, byte [esp + 0x32]
mov word [esi + 2], cx
movzx ecx, byte [esp + 0x33]
shl cx, 8
or cx, ax
shl dx, 8
movzx eax, byte [esp + 0x34]
mov word [esi + 0x2e], cx
movzx ecx, byte [esp + 0x35]
shl cx, 8
or cx, ax
mov dword [esi + 0x3c], 0
movzx eax, byte [esp + 0x39]
shl ax, 8
mov word [esi + 6], cx
movzx ecx, ax
movzx eax, byte [esp + 0x38]
or ecx, eax
mov dword [esi + 0x4c], 0
movzx eax, byte [esp + 0x37]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
movzx eax, byte [esp + 0x36]
or ecx, eax
movzx eax, byte [esp + 0x3d]
shl ax, 8
mov dword [esi + 8], ecx
movzx ecx, ax
movzx eax, byte [esp + 0x3c]
or ecx, eax
movzx eax, byte [esp + 0x3b]
shl ax, 8
movzx eax, ax
shl ecx, 0x10
or ecx, eax
movzx eax, byte [esp + 0x3a]
or ecx, eax
movzx eax, byte [esp + 0x46]
or dx, ax
mov dword [esi + 0xc], ecx
movzx ecx, byte [esp + 0x49]
movzx eax, byte [esp + 0x48]
shl cx, 8
or cx, ax
mov word [esi + 0x20], dx
movzx eax, cx
mov dword [esp + 0x20], eax
movzx eax, ax
mov dword [esp + 0x10], eax
movzx eax, dx
mov dword [esp + 0x28], eax
inc eax
push eax
movzx edi, cx
mov word [esi + 0x22], cx
mov dword [esp + 0x28], eax
call fcn.00525bb0
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esi + 0x48], eax
test eax, eax
je 0x516c50
mov eax, dword [esp + 0x10]
movzx eax, ax
mov dword [esp + 0x10], eax
test di, di
je 0x516d9a
push eax
call fcn.00525bb0
mov edi, eax
add esp, 4
mov dword [esi + 0x3c], edi
test edi, edi
je 0x516c50
jmp 0x516d9c
xor edi, edi
mov eax, dword [ebx]
push dword [esp + 0x28]
push dword [esp + 0x20]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
cmp eax, dword [esp + 0x28]
jne 0x516c11
cmp word [esp + 0x20], 0
je 0x516deb
mov eax, dword [ebx]
push dword [esp + 0x10]
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x541740]
mov ecx, ebx
call esi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x516c11
jmp 0x516def
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
movzx eax, word [eax + 0x20]
mov byte [eax + ebx], 0
test edi, edi
je 0x516e3e
lea edx, [edi - 4]
add edx, ecx
cmp edi, edx
jae 0x516e3e
mov esi, 0x7075
movzx ecx, byte [edi + 1]
movzx eax, byte [edi]
shl cx, 8
or cx, ax
cmp cx, si
je 0x516f03
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
add edi, 4
shl ecx, 8
or ecx, eax
add edi, ecx
cmp edi, edx
jb 0x516e11
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x48], 0
mov eax, dword [esp + 0x18]
movzx ecx, word [eax]
je 0x516e6b
movzx eax, cl
push eax
shr ecx, 8
push ecx
call fcn.004df5c0
test al, al
je 0x516e6b
mov eax, dword [esi + 0x48]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
mov eax, dword [esi + 0x3c]
mov dword [ebp + 0x64b78c], 0
test eax, eax
je 0x516ebe
movzx ecx, word [esi + 0x22]
lea edi, [eax - 4]
add edi, ecx
cmp eax, edi
jae 0x516ebe
lea esp, [esp]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl dx, 8
or dx, cx
cmp dx, 1
je 0x516fe8
movzx edx, byte [eax + 3]
movzx ecx, byte [eax + 2]
add eax, 4
shl edx, 8
or edx, ecx
add eax, edx
cmp eax, edi
jb 0x516e90
mov eax, dword [ebp + 0x64b78c]
mov edx, dword [esp + 0x18]
mov dword [ebp + 0x64b78c], eax
pop edi
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], ecx
mov ecx, dword [edx + 0x14]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x40
ret 8
test edi, edi
je 0x516e3e
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl cx, 8
or cx, ax
cmp byte [edi + 4], 1
movzx eax, cx
mov dword [esp + 0x20], eax
ja 0x516e3e
movzx esi, byte [edi + 8]
mov ecx, ebx
movzx eax, byte [edi + 7]
shl esi, 8
or esi, eax
movzx eax, byte [edi + 6]
shl esi, 8
lea edx, [ecx + 1]
or esi, eax
movzx eax, byte [edi + 5]
shl esi, 8
or esi, eax
add edi, 9
mov al, byte [ecx]
inc ecx
test al, al
jne 0x516f52
sub ecx, edx
push ecx
push ebx
push 0xffffffffffffffff
call fcn.004761b0
not eax
cmp eax, esi
jne 0x516e3e
mov eax, dword [esp + 0x20]
add eax, 0xfffffffb
movzx eax, ax
test ax, ax
jne 0x516fb5
push dword [esp + 0x24]
call fcn.00525bb0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x516e3e
mov edx, eax
mov cl, byte [ebx]
lea ebx, [ebx + 1]
mov byte [edx], cl
lea edx, [edx + 1]
test cl, cl
jne 0x516f97
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x4c], ebx
jmp 0x516e42
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00525bb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x516e3e
push esi
push edi
push ebx
call fcn.005299f0
mov byte [esi + ebx], 0
add esp, 0xc
mov esi, dword [esp + 0x14]
mov dword [esi + 0x4c], ebx
jmp 0x516e42
test eax, eax
je 0x516ebe
cmp dword [esi + 0x18], 0xffffffff
lea edi, [eax + 4]
mov dword [ebp + 0x64b78c], 1
mov dword [esp + 0x10], edi
jne 0x5170af
cmp dword [esi + 0x1c], 0
jne 0x5170af
movzx eax, byte [edi + 7]
cdq
mov ebx, eax
mov ecx, edx
movzx eax, byte [edi + 6]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 5]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 4]
shld ecx, ebx, 8
cdq
xor edi, edi
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 3]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x10]
shld esi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 2]
cdq
or ecx, eax
or esi, edx
mov eax, dword [esp + 0x10]
shld esi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 1]
cdq
or ecx, eax
or esi, edx
mov eax, dword [esp + 0x10]
shld esi, ecx, 8
or ebx, esi
shl ecx, 8
movzx eax, byte [eax]
or edi, ecx
mov esi, dword [esp + 0x14]
cdq
or edi, eax
or ebx, edx
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x10]
add edi, 8
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], edi
cmp dword [esi + 0x10], 0xffffffff
jne 0x517152
cmp dword [esi + 0x14], 0
jne 0x517152
movzx eax, byte [edi + 7]
cdq
mov ebx, eax
mov ecx, edx
movzx eax, byte [edi + 6]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 5]
shld ecx, ebx, 8
cdq
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 4]
shld ecx, ebx, 8
cdq
xor edi, edi
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 3]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x10]
shld esi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 2]
cdq
or ecx, eax
or esi, edx
mov eax, dword [esp + 0x10]
shld esi, ecx, 8
shl ecx, 8
movzx eax, byte [eax + 1]
cdq
or ecx, eax
or esi, edx
mov eax, dword [esp + 0x10]
shld esi, ecx, 8
shl ecx, 8
or ebx, esi
movzx eax, byte [eax]
or edi, ecx
mov esi, dword [esp + 0x14]
cdq
or edi, eax
or ebx, edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov eax, 1
jmp 0x516ec4