Function at 0x499820
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x4c1000
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
mov ecx, dword [0x4e2754]
push esi
cmp ecx, ebx
push edi
mov dword [esp + 0x10], ebp
je 0x4999b8
cmp byte [ecx + 0x24], bl
je 0x49990d
mov esi, ecx
cmp dword [esi + 0x6c], ebx
jbe 0x499904
lea eax, [esi + 0x54]
push 1
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x24]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x34], edx
call fcn.00499d70
mov eax, dword [eax + 8]
add esi, 4
push esi
mov eax, dword [eax]
mov ecx, eax
call fcn.00499e90
cmp al, bl
je 0x4998fe
mov esi, dword [0x4e2754]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.00499ba0
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.00499be0
mov esi, dword [eax]
mov ecx, edi
call fcn.00499c30
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0047a360
cmp esi, ebx
je 0x4998eb
push 1
mov ecx, esi
call fcn.0049a1d0
mov ecx, dword [0x4e2754]
cmp byte [ecx + 0x90], bl
jne 0x499904
call fcn.004a8490
mov ecx, dword [0x4e2754]
mov byte [ecx + 0x24], bl
mov ecx, dword [0x4e2754]
cmp ecx, ebx
je 0x4999b8
mov esi, ecx
cmp dword [esi + 0x6c], ebx
jbe 0x4999b8
lea ecx, [esi + 0x54]
push 1
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x2c], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], eax
call fcn.00499d70
mov eax, dword [eax + 8]
add esi, 4
push esi
mov eax, dword [eax]
mov ecx, eax
call fcn.00499e90
cmp al, bl
je 0x4999b8
mov esi, dword [0x4e2754]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x30]
dec eax
push eax
call fcn.00499ba0
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.00499be0
mov esi, dword [eax]
mov ecx, edi
call fcn.00499c30
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x10]
push eax
push edx
call fcn.0047a360
cmp esi, ebx
je 0x4999a5
push 1
mov ecx, esi
call fcn.0049a1d0
mov ecx, dword [0x4e2754]
cmp byte [ecx + 0x90], bl
jne 0x4999b8
call fcn.004a8490
mov edi, dword [esp + 0x70]
mov ecx, dword [ebp + 4]
push 4
mov dx, word [edi + 4]
push edx
call fcn.0049a9c0
mov ax, word [edi + 6]
mov ecx, dword [ebp + 4]
push 6
push eax
call fcn.0049a9c0
mov ecx, dword [ebp + 4]
call fcn.0049a6d0
mov ecx, dword [ebp + 4]
call fcn.0049a760
mov cl, byte [eax + 4]
mov dl, byte [eax + 5]
cmp cl, 0xff
mov byte [esp + 0x14], cl
mov byte [esp + 0x18], dl
jne 0x499a06
cmp dl, cl
jne 0x499a06
or esi, 0xffffffff
jmp 0x499a1f
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
and esi, 0xff
and ecx, 0xff
shl esi, 8
add esi, ecx
mov cl, byte [eax + 6]
mov dl, byte [eax + 7]
xor ax, ax
mov word [edi + 4], si
mov al, cl
movzx dx, dl
shl eax, 8
add eax, edx
mov word [edi + 6], ax
mov ecx, dword [0x4e2754]
cmp ecx, ebx
je 0x499b82
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov ecx, dword [0x4e2754]
cmp byte [ecx + 0x90], 1
jne 0x499b82
cmp eax, 1
je 0x499a79
cmp eax, 3
jne 0x499b78
cmp esi, 0xffffffff
je 0x499b82
mov dl, byte [esp + 0x70]
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x44], dl
call fcn.00403270
mov al, byte [esp + 0x70]
mov dword [esp + 0x54], ebx
mov byte [esp + 0x50], al
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov ecx, dword [0x4e2754]
mov edx, dword [0x4c21b8]
push edx
push ebx
lea esi, [ecx + 4]
lea ecx, [esp + 0x48]
push esi
mov dword [esp + 0x74], ebx
call fcn.00403070
add esi, 0x10
lea ecx, [esp + 0x50]
push esi
call fcn.0047be10
sub esp, 0x10
lea ecx, [esp + 0x50]
mov eax, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00499f80
mov ecx, ebp
call fcn.00499440
xor ebp, ebp
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
cmp esi, ebx
jne 0x499af7
xor eax, eax
jmp 0x499afe
mov eax, edi
sub eax, esi
sar eax, 2
cmp ebp, eax
jge 0x499b22
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebp
push ecx
lea ecx, [esp + 0x58]
call fcn.0049a0b0
mov ecx, dword [esp + 0x20]
call fcn.00499600
inc ebp
jmp 0x499ae7
cmp esi, edi
mov dword [esp + 0x68], 1
je 0x499b41
push ebx
mov ecx, esi
call fcn.004056d0
add esi, 4
cmp esi, edi
jne 0x499b2e
mov esi, dword [esp + 0x54]
push esi
call fcn.004ac910
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
push 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x6c], 0xffffffff
call fcn.00403270
mov ecx, dword [0x4e2754]
mov ebp, dword [esp + 0x10]
jmp 0x49990d
cmp eax, 2
jne 0x499b82
or eax, 0xffffffff
jmp 0x499b85
mov ax, si
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 4