Function at 0x404130
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
mov ebx, ecx
push ebp
test ebx, ebx
je 0x4044bb
movsx eax, byte [ebx + 0x328]
shl eax, 4
xor edx, edx
mov cl, byte [eax + eax*2 + 0x4b2f55]
lea esi, [eax + eax*2 + 0x4b2f50]
mov al, cl
and cl, 1
shr al, 2
cmp cl, 1
mov dl, al
mov eax, 0
adc eax, 0xffffffff
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x2c]
and eax, edx
lea edx, [esp + 0x20]
mov ebp, dword [ebx + 0x2fc]
mov dword [esp + 0x14], eax
mov eax, 0
cmp cl, 1
adc eax, 0xffffffff
and eax, edx
lea edx, [ebp + 0x70]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
test cl, cl
je 0x4041ce
mov eax, dword [esi + 0xa]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [edi + 4], eax
mov ecx, dword [esi + 0xe]
mov dword [edi + 8], ecx
mov eax, dword [esi + 6]
mov dword [edi], eax
mov ecx, dword [esi + 0x16]
mov dword [edx + 4], ecx
mov eax, dword [esi + 0x1a]
mov dword [edx + 8], eax
mov ecx, dword [esi + 0x12]
mov dword [edx], ecx
mov eax, dword [ebx + 0x2f4]
test eax, eax
jne 0x4044bb
and byte [esi + 5], 0xfd
mov ecx, dword [0x45d21c]
test ecx, ecx
je 0x404202
mov ecx, dword [ecx + 0x2fc]
cmp ecx, ebp
jne 0x404202
push 0
xor edx, edx
mov ecx, 0x13
call fcn.00431590
lea esi, [ebx + 0x1c]
lea edi, [ebp + 0x1c]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x30]
lea edi, [ebp + 0x30]
mov ecx, 5
lea edx, [ebp + 0x58]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x58]
mov eax, dword [ebx + 0x58]
mov dword [edx], eax
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea edx, [ebp + 0xec]
mov dword [ebp + 0x60], 0
mov dword [ebx + 0x154], 0x5f
mov dword [ebp + 0x154], 0x46
mov eax, dword [ebx + 0xec]
lea ecx, [ebx + 0xec]
mov dword [edx], eax
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
lea esi, [ebp + 0x108]
mov edi, dword [ecx + 8]
mov dword [edx + 8], edi
mov eax, dword [ebx + 0x104]
mov dword [ebp + 0x104], eax
lea eax, [ebx + 0x108]
mov edi, dword [ebx + 0x108]
mov dword [esi], edi
mov edi, dword [eax + 4]
mov dword [esi + 4], edi
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [ebp + 0x118], 0
mov dword [ebp + 0x11c], 0
mov dword [ebp + 0x114], 0
mov dword [ebp + 0x120], 0
mov dword [ebp + 0x124], 0
mov dword [ebp + 0x128], 0
mov byte [ebp + 0x164], 0
mov dword [ebp + 0x198], 0
mov byte [ebp + 0x19c], 0
mov dword [ebp + 0x1a0], 0
mov esi, dword [ebx + 0x12c]
mov dword [ebp + 0x12c], esi
mov edi, dword [ebx + 0x130]
mov dword [ebp + 0x130], edi
mov eax, dword [ebx + 0x134]
mov dword [ebp + 0x134], eax
mov esi, dword [ebx + 0x138]
mov dword [ebp + 0x138], esi
mov edi, dword [ebx + 0x13c]
mov dword [ebp + 0x13c], edi
mov eax, dword [ebx + 0x140]
mov dword [ebp + 0x140], eax
mov esi, dword [ebx + 0x158]
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x158], esi
test eax, eax
mov edi, dword [ebx + 0x160]
mov dword [ebp + 0x160], edi
je 0x40438a
mov eax, dword [eax + 4]
mov esi, dword [ebp + 0xf0]
add esi, eax
mov edi, dword [esp + 0x14]
mov dword [ebp + 0xf0], esi
mov esi, dword [ebp + 0xf4]
add esi, dword [edi + 8]
mov dword [ebp + 0xf4], esi
mov esi, dword [edx]
add esi, dword [edi]
mov dword [edx], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4043be
mov eax, dword [eax + 4]
mov esi, dword [ebx + 0xf0]
add esi, eax
mov edx, dword [esp + 0x18]
mov edi, dword [ebx + 0xf4]
mov dword [ebx + 0xf0], esi
add edi, dword [edx + 8]
mov dword [ebx + 0xf4], edi
mov eax, dword [edx]
mov edx, dword [ecx]
add edx, eax
mov dword [ecx], edx
mov eax, dword [ebp + 0x20]
add eax, 0x4b00
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x16c]
mov edx, dword [ebx + 0x20]
add edx, ecx
mov dword [ebx + 0x2f8], eax
xor eax, eax
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x2f4], 1
or byte [ebp + 0xc0], 3
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0x288], eax
mov byte [ebx + 0x244], 1
mov edx, dword [0x45d338]
mov dword [ebx + 0x174], edx
mov ecx, dword [0x45d33c]
mov dword [ebx + 0x178], ecx
mov eax, dword [0x45d340]
mov dword [ebx + 0x17c], eax
mov eax, dword [esp + 0x1c]
sub eax, 2
cmp eax, 3
ja case.default.0x404436
jmp dword [eax*4 + 0x4044c4]
mov edx, 0x21
jmp 0x404457
mov edx, 0x1d
jmp 0x404457
mov edx, 0x21
jmp 0x404457
mov edx, 0x23
mov ecx, dword [esp + 0x10]
call fcn.0040acd0
mov edx, 0xffffffff
mov ecx, dword [esp + 0x10]
call fcn.0040ad00
mov ecx, ebp
call fcn.004075a0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4044bb
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4044bb
mov eax, dword [esp + 0x1c]
cmp eax, 6
jne 0x4044bb
mov edx, 0x26
mov ecx, dword [esp + 0x10]
call fcn.0040acd0
mov edx, 0x26
mov ecx, dword [esp + 0x10]
call fcn.0040ad00
mov dword [ebx + 0x2f4], 2
sub dword [ebx + 0x28], 0x2328
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret