Function at 0x474350
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0x5b], 1
jne 0x4743be
mov al, byte [ebp + 0x5a]
test al, al
je 0x4743be
mov eax, dword [ebp + 0x88]
mov cl, byte [eax + 2]
test cl, cl
je 0x4743be
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x2c]
cmp eax, ebx
jne 0x474399
cmp ecx, dword [esp + 0x30]
jne 0x474399
mov ecx, dword [esp + 0x38]
pop ebp
xor eax, eax
pop ebx
mov dword [ecx], 0
add esp, 0x18
ret
mov dl, byte [ebp + 0x59]
test dl, dl
je 0x4743c2
cmp ecx, dword [esp + 0x30]
jg 0x4743c2
jl 0x4743ac
cmp eax, ebx
jae 0x4743c2
mov edx, dword [esp + 0x38]
pop ebp
xor eax, eax
pop ebx
mov dword [edx], 0xffffffff
add esp, 0x18
ret
mov ebx, dword [esp + 0x2c]
push ebp
call fcn.00473fd0
add esp, 4
test eax, eax
jne 0x4746d5
mov al, byte [ebp + 0x5b]
test al, al
jne 0x4743ec
mov eax, dword [esp + 0x38]
pop ebp
pop ebx
mov dword [eax], 0xffffffff
xor eax, eax
add esp, 0x18
ret
push esi
push edi
movsx ecx, word [ebp + 0x5e]
mov edx, dword [esp + 0x3c]
xor eax, eax
mov edi, dword [ebp + ecx*4 + 0x88]
mov dword [esp + 0x14], 0
mov ax, word [edi + 0x10]
dec eax
test edx, edx
mov dword [esp + 0x18], eax
jne 0x474419
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov word [ebp + ecx*2 + 0x60], ax
mov edx, dword [esp + 0x10]
mov word [ebp + 0x42], 0
mov ecx, dword [edi + 0x40]
lea eax, [ecx + edx*2]
xor ecx, ecx
xor edx, edx
mov ch, byte [eax]
mov dl, byte [edi + 6]
mov cl, byte [eax + 1]
xor eax, eax
mov ax, word [edi + 0x12]
and ecx, eax
mov eax, dword [edi + 0x38]
add ecx, eax
mov al, byte [edi + 2]
add ecx, edx
test al, al
mov esi, ecx
je 0x4744f3
mov al, byte [edi + 4]
test al, al
je 0x474491
mov al, byte [esi]
cmp al, 0x80
jae 0x474477
and eax, 0xff
mov dword [esp + 0x1c], eax
mov eax, 1
jmp 0x47448a
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00466500
add esp, 8
and eax, 0xff
and eax, 0xff
add esi, eax
lea edx, [esp + 0x20]
push edx
push esi
call fcn.00466340
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
add esp, 8
cmp eax, ebx
jne 0x4744c4
cmp ecx, edx
jne 0x4744c6
mov dword [ebp + 0x28], eax
xor ebx, ebx
mov byte [ebp + 0x5a], 1
mov dword [ebp + 0x2c], ecx
jmp 0x4745a1
cmp ecx, edx
jg 0x4744e0
jl 0x4744ce
cmp eax, ebx
jae 0x4744e0
mov dword [ebp + 0x28], eax
or ebx, 0xffffffff
mov byte [ebp + 0x5a], 1
mov dword [ebp + 0x2c], ecx
jmp 0x4745a1
mov ebx, 1
mov dword [ebp + 0x28], eax
mov byte [ebp + 0x5a], bl
mov dword [ebp + 0x2c], ecx
jmp 0x4745a1
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [edi + 7]
cmp eax, ecx
jg 0x474517
mov edx, dword [esp + 0x30]
inc esi
push edx
push esi
push eax
call fcn.004794b0
add esp, 0xc
mov ebx, eax
jmp 0x4745a1
mov cl, byte [esi + 1]
test cl, 0x80
jne 0x47454d
and eax, 0x7f
and ecx, 0xff
shl eax, 7
add eax, ecx
xor ecx, ecx
mov cx, word [edi + 8]
cmp eax, ecx
jg 0x47454d
mov edx, dword [esp + 0x30]
add esi, 2
push edx
push esi
push eax
call fcn.004794b0
add esp, 0xc
mov ebx, eax
jmp 0x4745a1
lea ebx, [ebp + 0x28]
sub esi, edx
push ebx
push esi
push edi
call fcn.004661f0
mov ebx, dword [ebx]
push ebx
call fcn.00458f60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47467a
push 0
push esi
push ebx
push 0
push ebp
call fcn.00466c20
add esp, 0x14
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x47468e
mov eax, dword [esp + 0x30]
push eax
push esi
push ebx
call fcn.004794b0
push esi
mov ebx, eax
call fcn.00459150
add esp, 0x10
test ebx, ebx
je 0x4745e4
jge 0x4745b2
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], ecx
jmp 0x4745bb
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp esi, eax
jg 0x474604
movsx ecx, word [ebp + 0x5e]
add eax, esi
mov ebx, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov word [ebp + ecx*2 + 0x60], ax
jmp 0x474422
mov al, byte [edi + 2]
test al, al
je 0x4746a3
mov al, byte [edi + 3]
test al, al
jne 0x4746a3
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov esi, edx
mov al, byte [edi + 3]
test al, al
jne 0x4746c1
xor eax, eax
mov ax, word [edi + 0x10]
cmp esi, eax
jl 0x474628
mov edx, dword [edi + 0x38]
xor ecx, ecx
mov cl, byte [edi + 5]
lea eax, [ecx + edx + 8]
push eax
jmp 0x474644
mov ecx, dword [edi + 0x40]
xor edx, edx
mov dh, byte [ecx + esi*2]
lea eax, [ecx + esi*2]
mov dl, byte [eax + 1]
xor eax, eax
mov ax, word [edi + 0x12]
and edx, eax
mov eax, dword [edi + 0x38]
add edx, eax
push edx
call fcn.00461270
add esp, 4
test eax, eax
je 0x4746c1
movsx ecx, word [ebp + 0x5e]
push eax
push ebp
mov word [ebp + ecx*2 + 0x60], si
mov word [ebp + 0x42], 0
mov byte [ebp + 0x5a], 0
call fcn.00474180
add esp, 8
test eax, eax
jne 0x4746d3
mov ebx, dword [esp + 0x34]
jmp 0x4743ee
pop edi
mov dword [esp + 0x28], 7
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push esi
call fcn.00459150
mov eax, dword [esp + 0x30]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x40]
pop edi
mov dword [esp + 0x28], 0
pop esi
mov eax, dword [esp + 0x24]
pop ebp
mov dword [edx], 0
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], 0
mov dword [eax], ebx
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret