Function at 0x10083890
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
cmp byte [ebp + 0x5b], 1
jne 0x100838fe
mov al, byte [ebp + 0x5a]
test al, al
je 0x100838fe
mov eax, dword [ebp + 0x88]
mov cl, byte [eax + 2]
test cl, cl
je 0x100838fe
mov eax, dword [ebp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x2c]
cmp eax, ebx
jne 0x100838d9
cmp ecx, dword [esp + 0x30]
jne 0x100838d9
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 0x10083902
cmp ecx, dword [esp + 0x30]
jg 0x10083902
jl 0x100838ec
cmp eax, ebx
jae 0x10083902
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.10083530
add esp, 4
test eax, eax
jne 0x10083c15
mov al, byte [ebp + 0x5b]
test al, al
jne 0x1008392c
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 0x10083959
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 0x10083a33
mov al, byte [edi + 4]
test al, al
je 0x100839d1
mov al, byte [esi]
cmp al, 0x80
jae 0x100839b7
and eax, 0xff
mov dword [esp + 0x1c], eax
mov eax, 1
jmp 0x100839ca
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.10076050
add esp, 8
and eax, 0xff
and eax, 0xff
add esi, eax
lea edx, [esp + 0x20]
push edx
push esi
call fcn.10075e90
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
add esp, 8
cmp eax, ebx
jne 0x10083a04
cmp ecx, edx
jne 0x10083a06
mov dword [ebp + 0x28], eax
xor ebx, ebx
mov byte [ebp + 0x5a], 1
mov dword [ebp + 0x2c], ecx
jmp 0x10083ae1
cmp ecx, edx
jg 0x10083a20
jl 0x10083a0e
cmp eax, ebx
jae 0x10083a20
mov dword [ebp + 0x28], eax
or ebx, 0xffffffff
mov byte [ebp + 0x5a], 1
mov dword [ebp + 0x2c], ecx
jmp 0x10083ae1
mov ebx, 1
mov dword [ebp + 0x28], eax
mov byte [ebp + 0x5a], bl
mov dword [ebp + 0x2c], ecx
jmp 0x10083ae1
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [edi + 7]
cmp eax, ecx
jg 0x10083a57
mov edx, dword [esp + 0x30]
inc esi
push edx
push esi
push eax
call fcn.100888f0
add esp, 0xc
mov ebx, eax
jmp 0x10083ae1
mov cl, byte [esi + 1]
test cl, 0x80
jne 0x10083a8d
and eax, 0x7f
and ecx, 0xff
shl eax, 7
add eax, ecx
xor ecx, ecx
mov cx, word [edi + 8]
cmp eax, ecx
jg 0x10083a8d
mov edx, dword [esp + 0x30]
add esi, 2
push edx
push esi
push eax
call fcn.100888f0
add esp, 0xc
mov ebx, eax
jmp 0x10083ae1
lea ebx, [ebp + 0x28]
sub esi, edx
push ebx
push esi
push edi
call fcn.10075d30
mov ebx, dword [ebx]
push ebx
call fcn.10069a90
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10083bba
push 0
push esi
push ebx
push 0
push ebp
call fcn.100774e0
add esp, 0x14
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10083bce
mov eax, dword [esp + 0x30]
push eax
push esi
push ebx
call fcn.100888f0
push esi
mov ebx, eax
call fcn.10069c80
add esp, 0x10
test ebx, ebx
je 0x10083b24
jge 0x10083af2
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x14], ecx
jmp 0x10083afb
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 0x10083b44
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 0x10083962
mov al, byte [edi + 2]
test al, al
je 0x10083be3
mov al, byte [edi + 3]
test al, al
jne 0x10083be3
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov esi, edx
mov al, byte [edi + 3]
test al, al
jne 0x10083c01
xor eax, eax
mov ax, word [edi + 0x10]
cmp esi, eax
jl 0x10083b68
mov edx, dword [edi + 0x38]
xor ecx, ecx
mov cl, byte [edi + 5]
lea eax, [ecx + edx + 8]
push eax
jmp 0x10083b84
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.10070810
add esp, 4
test eax, eax
je 0x10083c01
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.100836d0
add esp, 8
test eax, eax
jne 0x10083c13
mov ebx, dword [esp + 0x34]
jmp 0x1008392e
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.10069c80
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