Function at 0x476f70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x48
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x60]
xor ecx, ecx
mov eax, dword [edi]
lea ebx, [edi + 8]
mov esi, dword [eax + 0xc]
movsx eax, word [esp + 0x64]
shl eax, 3
add eax, dword [esi]
mov cx, word [eax]
mov ax, word [eax + 6]
and ecx, 0x800
mov word [esp + 0x12], ax
mov dword [esp + 0x24], ecx
test ax, ax
jne 0x476fb4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ax, word [eax + 8]
mov dword [esp + 0x28], ecx
mov word [esp + 0x30], ax
mov dword [esp + 0x2c], edx
mov word [esp + 0x20], ax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], edx
and eax, 0xfffffffd
lea ecx, [esp + 0x28]
mov edx, dword [esp + 0x12]
push ecx
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x44], eax
or eax, 1
mov dword [esp + 0x4c], eax
push eax
push edx
push edi
push ecx
call fcn.00476c10
add esp, 0x14
test eax, eax
jle 0x47725c
mov eax, dword [esp + 0x68]
and eax, 8
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
and eax, 4
mov dword [esp + 0x38], eax
cmp dword [esp + 0x44], 0
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
jne 0x477062
cmp dword [esp + 0x24], 0
je 0x477046
mov eax, dword [ebx + 4]
inc eax
jmp 0x47704e
mov eax, dword [esp + 0x14]
and eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
not eax
or eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
jmp 0x4770d3
cmp dword [esp + 0x74], 0
je 0x4770b7
cmp dword [esp + 0x24], 0
je 0x47708b
cmp dword [esp + 0x38], 0
je 0x477081
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jmp 0x4770a9
mov eax, dword [ebx + 4]
inc eax
mov dword [esp + 0x18], eax
jmp 0x4770a9
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x14], eax
jbe 0x4770a1
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x18], ecx
jmp 0x4770a9
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jmp 0x4770d3
cmp dword [esp + 0x24], 0
je 0x4770d3
cmp dword [esp + 0x38], 0
je 0x4770cb
mov eax, dword [esp + 0x14]
jmp 0x4770cf
mov eax, dword [ebx + 4]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x18], eax
jae 0x4770e1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x1c], eax
jbe 0x4770ef
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x24], 0
jne 0x477108
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jbe 0x477108
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], 0
je 0x47711e
mov dword [esp + 0x3c], 0
mov bp, word [esp + 0x12]
jmp 0x477132
mov dword [esp + 0x3c], 1
mov ecx, dword [esi]
movsx eax, word [esp + 0x12]
mov bp, word [ecx + eax*8 + 4]
test bp, bp
je 0x47717f
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push ebp
push edi
push edx
call fcn.00476c10
add esp, 0x14
test eax, eax
jle 0x477176
add dword [esp + 0x3c], eax
cmp dword [esp + 0x24], 0
je 0x477167
mov eax, dword [ebx + 4]
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [esi]
movsx eax, bp
mov bp, word [ecx + eax*8 + 4]
test bp, bp
jne 0x477137
test bp, bp
jne 0x477206
test byte [esp + 0x68], 2
je 0x4771ce
mov bp, word [esp + 0x12]
mov eax, dword [esp + 0x14]
test bp, bp
mov dword [esp + 0x18], eax
je 0x4771ce
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push ebp
push edi
push edx
call fcn.00476c10
add esp, 0x14
cmp dword [esp + 0x24], 0
je 0x4771bf
mov eax, dword [ebx]
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [esi]
movsx eax, bp
mov bp, word [ecx + eax*8 + 4]
test bp, bp
jne 0x477198
cmp dword [esp + 0x34], 0
jne 0x4771eb
mov dx, word [ebx + 8]
mov eax, dword [ebx]
mov word [esp + 0x54], dx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x3c]
add dword [esp + 0x34], eax
test byte [esp + 0x68], 1
jne 0x47725c
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x1c], eax
je 0x47725c
jmp 0x47722e
mov ecx, dword [ebx]
lea eax, [ecx - 1]
cmp eax, dword [esp + 0x2c]
jae 0x47725c
cmp dword [esp + 0x44], 0
je 0x477222
sub ecx, dword [esp + 0x74]
mov dword [esp + 0x28], ecx
jmp 0x477237
mov eax, dword [esp + 0x70]
and eax, ecx
cmp eax, dword [esp + 0x28]
ja 0x477233
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x12]
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push edi
push eax
call fcn.00476c10
add esp, 0x14
test eax, eax
jg 0x47702c
cmp dword [esp + 0x34], 0
je 0x477279
mov dx, word [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov word [ebx + 8], dx
mov eax, dword [esp + 0x34]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x48
ret