Function at 0x437970
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x1c
push ebx
mov eax, dword [edx + 0x1c]
push esi
push edi
push ebp
mov edi, dword [eax + 0x14]
xor ebp, ebp
mov eax, dword [edx + 0xe0]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebp
test eax, eax
je 0x4379ad
push eax
push edi
call fcn.004ca4a0
mov dword [esp + 0x30], eax
add esp, 8
mov ebp, eax
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 0xd4]
test ecx, ecx
je 0x4379ce
mov eax, dword [ecx + 0x10]
movsx ecx, word [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
add dword [esp + 0x28], ecx
mov eax, dword [esp + 0x28]
push 0x3e
mov ecx, dword [edi + 0x44]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push ecx
push edi
call fcn.004aab00
mov dword [esp + 0x28], eax
add esp, 0x10
test eax, eax
je case.0x437ab3.6
xor ebx, ebx
test ebp, ebp
jle 0x437aff
mov esi, eax
mov edx, dword [esp + 0x30]
push ebx
mov eax, dword [edx + 0xe0]
push eax
push edi
call fcn.004ce400
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esi + 4], eax
push eax
push ebx
mov ecx, dword [edx + 0xe0]
push ecx
push edi
call fcn.00437d40
add esp, 0x10
test eax, eax
je 0x437af6
mov edx, dword [esp + 0x30]
push ebx
mov eax, dword [edx + 0xe0]
push eax
push edi
call fcn.004ce430
mov byte [esp + 0x2c], al
add esp, 0xc
mov dword [esi + 0xc], 1
and al, 0xf
mov byte [esp + 0x13], al
cmp al, 2
jne 0x437a7d
mov edx, dword [esp + 0x30]
push ebx
mov eax, dword [edx + 0xe0]
push eax
push edi
call fcn.004ce460
movsx ecx, ax
add esp, 0xc
mov dword [esi + 0x10], ecx
jmp 0x437a84
mov dword [esi + 0x10], 0
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x20]
dec al
cmp al, 1
mov eax, 0xb
adc eax, 0xffffffff
and cl, 0xf0
mov dword [esi + 0x14], eax
xor eax, eax
mov al, cl
cmp eax, 0x50
ja case.0x437ab3.6
xor ecx, ecx
mov cl, byte [eax + 0x437cac]
jmp dword [ecx*4 + 0x437c90]
mov al, byte [esp + 0x13]
sub al, 4
cmp al, 1
sbb eax, eax
and eax, 5
inc eax
mov dword [esi + 8], eax
jmp 0x437aef
mov dword [esi + 8], 2
jmp 0x437aef
mov dword [esi + 8], 3
jmp 0x437aef
mov dword [esi + 8], 4
jmp 0x437aef
mov dword [esi + 8], 5
add esi, 0x18
inc dword [esp + 0x14]
inc ebx
cmp ebp, ebx
jg 0x437a00
mov dword [esp + 0x20], 0
cmp dword [esp + 0x24], 0
jle 0x437c08
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea edx, [ecx + ecx*2]
mov eax, dword [esp + 0x18]
lea esi, [eax + edx*8]
mov eax, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [esp + 0x14], ebx
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esi + 4], edx
jle 0x437b77
mov ebp, dword [esp + 0x18]
add ebp, 4
mov ecx, 0
test edi, edi
je 0x437b51
mov ecx, dword [edi + 0xac]
mov eax, dword [ebp]
mov edx, dword [esi + 4]
push eax
push edx
push ecx
call fcn.004ac2e0
add esp, 0xc
test ax, ax
je 0x437b71
add ebp, 0x18
inc ebx
cmp dword [esp + 0x14], ebx
jg 0x437b42
cmp dword [esp + 0x14], ebx
jg 0x437bf1
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x437bb0
cmp eax, 2
je 0x437bb9
cmp dword [esp + 0x18], 0
je 0x437ba3
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x44]
push ecx
push eax
push edi
call fcn.004aad00
add esp, 0xc
mov eax, 0xfffffffe
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov dword [esi + 8], 1
jmp 0x437bc0
mov dword [esi + 8], 6
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], 2
mov ecx, dword [eax]
movsx edx, word [ecx + 4]
mov dword [esi + 0x10], edx
mov ecx, dword [eax]
mov ax, word [ecx + 6]
and ax, 1
cmp ax, 1
sbb eax, eax
add esi, 0x18
add eax, 0xb
inc dword [esp + 0x14]
mov dword [esi - 4], eax
add dword [esp + 0x1c], 4
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x24], eax
jg 0x437b28
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], eax
jle 0x437c39
push 0x3e
lea eax, [eax + eax*2]
shl eax, 3
mov ecx, dword [esp + 0x1c]
push eax
mov edx, dword [edi + 0x44]
push ecx
push edx
push edi
call fcn.004aadf0
mov dword [esp + 0x2c], eax
add esp, 0x14
test eax, eax
je case.0x437ab3.6
mov eax, dword [esp + 0x14]
push 0
push eax
mov eax, dword [esp + 0x38]
add eax, 0xd8
push eax
push 0
push edi
call fcn.0040fa70
add esp, 0x14
test eax, eax
jne case.0x437ab3.6
cmp dword [esp + 0x14], 0
jle 0x437c85
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
add ecx, 4
mov ebx, dword [edx + 0xdc]
mov dword [ebx + ecx - 4], esi
add esi, 0x18
dec eax
jne 0x437c6e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret