Function at 0x459b90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0x5b], 1
jne 0x459bfe
mov al, byte [ebp + 0x5a]
test al, al
je 0x459bfe
mov eax, dword [ebp + 0x88]
mov cl, byte [eax + 2]
test cl, cl
je 0x459bfe
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x2c]
cmp eax, ebx
jne 0x459bd9
cmp ecx, dword [esp + 0x30]
jne 0x459bd9
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 0x459c02
cmp ecx, dword [esp + 0x30]
jg 0x459c02
jl 0x459bec
cmp eax, ebx
jae 0x459c02
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.00459830
add esp, 4
test eax, eax
jne 0x459f15
mov al, byte [ebp + 0x5b]
test al, al
jne 0x459c2c
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 0x459c59
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 0x459d33
mov al, byte [edi + 4]
test al, al
je 0x459cd1
mov al, byte [esi]
cmp al, 0x80
jae 0x459cb7
and eax, 0xff
mov dword [esp + 0x1c], eax
mov eax, 1
jmp 0x459cca
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.0044c080
add esp, 8
and eax, 0xff
and eax, 0xff
add esi, eax
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0044bec0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
add esp, 8
cmp eax, ebx
jne 0x459d04
cmp ecx, edx
jne 0x459d06
mov dword [ebp + 0x28], eax
xor ebx, ebx
mov byte [ebp + 0x5a], 1
mov dword [ebp + 0x2c], ecx
jmp 0x459de1
cmp ecx, edx
jg 0x459d20
jl 0x459d0e
cmp eax, ebx
jae 0x459d20
mov dword [ebp + 0x28], eax
or ebx, 0xffffffff
mov byte [ebp + 0x5a], 1
mov dword [ebp + 0x2c], ecx
jmp 0x459de1
mov ebx, 1
mov dword [ebp + 0x28], eax
mov byte [ebp + 0x5a], bl
mov dword [ebp + 0x2c], ecx
jmp 0x459de1
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [edi + 7]
cmp eax, ecx
jg 0x459d57
mov edx, dword [esp + 0x30]
inc esi
push edx
push esi
push eax
call fcn.0045ecc0
add esp, 0xc
mov ebx, eax
jmp 0x459de1
mov cl, byte [esi + 1]
test cl, 0x80
jne 0x459d8d
and eax, 0x7f
and ecx, 0xff
shl eax, 7
add eax, ecx
xor ecx, ecx
mov cx, word [edi + 8]
cmp eax, ecx
jg 0x459d8d
mov edx, dword [esp + 0x30]
add esi, 2
push edx
push esi
push eax
call fcn.0045ecc0
add esp, 0xc
mov ebx, eax
jmp 0x459de1
lea ebx, [ebp + 0x28]
sub esi, edx
push ebx
push esi
push edi
call fcn.0044bd60
mov ebx, dword [ebx]
push ebx
call fcn.0043f5a0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459eba
push 0
push esi
push ebx
push 0
push ebp
call fcn.0044d520
add esp, 0x14
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x459ece
mov eax, dword [esp + 0x30]
push eax
push esi
push ebx
call fcn.0045ecc0
push esi
mov ebx, eax
call fcn.0043f790
add esp, 0x10
test ebx, ebx
je 0x459e24
jge 0x459df2
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], ecx
jmp 0x459dfb
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 0x459e44
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 0x459c62
mov al, byte [edi + 2]
test al, al
je 0x459ee3
mov al, byte [edi + 3]
test al, al
jne 0x459ee3
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov esi, edx
mov al, byte [edi + 3]
test al, al
jne 0x459f01
xor eax, eax
mov ax, word [edi + 0x10]
cmp esi, eax
jl 0x459e68
mov edx, dword [edi + 0x38]
xor ecx, ecx
mov cl, byte [edi + 5]
lea eax, [ecx + edx + 8]
push eax
jmp 0x459e84
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.004467f0
add esp, 4
test eax, eax
je 0x459f01
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.004599d0
add esp, 8
test eax, eax
jne 0x459f13
mov ebx, dword [esp + 0x34]
jmp 0x459c2e
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.0043f790
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