Function at 0x51ada0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6a49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
add eax, 0x14
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx + 4]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0x24
jg 0x51ae08
cmp dword [ebp - 0x54], 0x24
je 0x51b1b4
cmp dword [ebp - 0x54], 1
je 0x51b03c
cmp dword [ebp - 0x54], 3
je 0x51ae2e
cmp dword [ebp - 0x54], 0x23
je 0x51af2c
jmp 0x51b2ae
cmp dword [ebp - 0x54], 0x3f
je 0x51b0ef
cmp dword [ebp - 0x54], 0x48
je 0x51b13c
cmp dword [ebp - 0x54], 0x100
je 0x51b28c
jmp 0x51b2ae
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [eax + 6]
push ecx
mov ecx, dword [0x6bc79c]
call fcn.0042fc80
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x51af18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x3c]
call fcn.0047e720
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ax, word [edx + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx + 0xa]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004b8a00
cmp dword [ebp - 0x20], 1
jl 0x51aea1
cmp dword [ebp - 0x24], 1
jge 0x51aec4
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [0x6bc7a0]
call fcn.00482570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004db790
jmp 0x51b2bd
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x6bc7a0]
call fcn.00482570
mov ecx, dword [ebp - 0x14]
mov dx, word [ecx + 6]
mov word [ebp - 0x34], dx
mov ax, word [ebp - 0x20]
mov word [ebp - 0x32], ax
mov cx, word [ebp - 0x24]
mov word [ebp - 0x30], cx
mov word [ebp - 0x44], 1
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00500020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004db790
jmp 0x51b2bd
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [0x6bc7a0]
call fcn.00482570
jmp 0x51b2bd
mov ecx, dword [ebp - 0x10]
call fcn.00403b50
mov word [ebp - 0x48], ax
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [0x6bc7a0]
call fcn.00482780
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51b028
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00408fb0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 0x1780
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], 2
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x1d
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x1018], 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1018]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1018
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x101c
push ecx
call fcn.005b4f00
add esp, 0xc
mov edx, dword [ebp - 0x18]
add edx, 0x18
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x278c]
mov dword [eax], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x15], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx + 0x14]
mov word [eax + 0x19], dx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx + 0x16]
mov word [eax + 0x1b], dx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x5e6], 0
push 0x11
mov ecx, dword [ebp - 0x10]
add ecx, 0x5d6
push ecx
mov edx, dword [ebp - 0x40]
add edx, 4
push edx
call fcn.005b4f00
add esp, 0xc
mov eax, dword [ebp - 0x40]
mov byte [eax + 0x14], 0
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [0x6bc7b8]
call fcn.004aa340
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [0x6bc7a0]
call fcn.00482570
jmp 0x51b2bd
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x2e94]
cmp ecx, 0xff
je 0x51b055
jmp 0x51b2bd
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1014], 0x64
jbe 0x51b06e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1014], 0x64
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x7de
mov edx, dword [ebp + 8]
mov dword [edx + 8], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1014]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1014]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x1018
push edx
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
call fcn.005b4f00
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1014]
mov eax, dword [ebp + 8]
mov byte [eax + edx + 0x14], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [0x6bc7a0]
call fcn.0047d3d0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [0x6bc7a0]
call fcn.00482570
mov dword [ebp + 8], 0
jmp 0x51b2bd
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x2e94]
cmp ecx, 0xff
je 0x51b108
jmp 0x51b2bd
push 0
push 0x800b
push 0x111
mov edx, dword [0x60481c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x6bc7a0]
call fcn.00482570
mov dword [ebp + 8], 0
jmp 0x51b2bd
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dx, word [ecx + 8]
imul edx, edx, 0xea60
mov eax, dword [0x6f73fc]
add eax, edx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 6
push edx
mov ecx, dword [0xe17490]
call fcn.004ae3a0
test eax, eax
je 0x51b199
mov eax, dword [ebp - 0x14]
add eax, 6
push eax
mov ecx, dword [0xe17490]
call fcn.004ae7a0
mov ecx, dword [ebp - 0x14]
mov word [ecx + 0xa], ax
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [0x6bc7a0]
call fcn.0047d2a0
jmp 0x51b1af
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x6bc7a0]
call fcn.00482570
mov dword [ebp + 8], 0
jmp 0x51b2bd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ax, word [edx + 0x10]
mov word [ecx + 6], ax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ax, word [edx + 0x14]
mov word [ecx + 8], ax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ax, word [edx + 0x16]
mov word [ecx + 0xa], ax
mov ecx, dword [ebp - 0x10]
call fcn.00403b50
mov word [ebp - 0x50], ax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [0x6bc7a0]
call fcn.00482780
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x51b27b
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00408fb0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x10], 0x1783
mov eax, dword [ebp - 0x18]
mov dword [eax + 0xc], 1
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], 0x21
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x1018], 8
push 0x21
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
push ecx
call fcn.005b4f00
add esp, 0xc
push 8
mov edx, dword [ebp + 8]
add edx, 0x1018
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x101c
push eax
call fcn.005b4f00
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [0x6bc7b8]
call fcn.004aa340
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [0x6bc7a0]
call fcn.00482570
jmp 0x51b2bd
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x7e5
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 1
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0052fb10
jmp 0x51b2bd
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x6bc7a0]
call fcn.00482570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4