Function at 0x408990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ebp, dword [esp + 0x40]
mov eax, dword [ebp]
lea ecx, [eax + 1]
mov edi, 0x80070000
cmp ecx, dword [ebp + 4]
ja 0x408c27
movzx ebx, byte [eax]
mov dword [ebp], ecx
test ebx, ebx
je 0x408a92
mov dword [esp + 8], ecx
test bl, bl
sets cl
mov esi, ebx
and esi, 0x3f
lea eax, [esi - 1]
cmp eax, 0x17
setne dl
cmp eax, 0x18
ja 0x408c27
or cl, dl
je 0x408c27
mov edi, ebp
movzx ebp, word [ebp + 8]
cmp bp, 0x64
ja 0x408c31
lea edx, [ebp + 1]
imul ecx, eax, 0x3c
mov word [edi + 8], dx
lea edi, [ecx + 0x5247a8]
mov edx, dword [esp + 0x38]
mov dword [edx], edi
test bl, bl
js 0x408a99
cmp eax, 0x15
jne 0x408adb
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
sub esp, 0xc
mov ebx, dword [esp + 0x4c]
mov dword [esp + 8], ebx
lea eax, [esp + 0x18]
mov dword [esp], eax
call fcn.00408140
add esp, 0xc
test eax, eax
jne 0x408c1d
mov ecx, dword [ebx]
lea eax, [ecx + 1]
cmp eax, dword [ebx + 4]
ja 0x408c38
mov dword [esp + 4], ecx
movzx ecx, byte [ecx]
mov dword [ebx], eax
mov ebp, dword [esp + 0x10]
cmp cl, 1
jne 0x408b5d
test ebp, ebp
je 0x408b72
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x408b19
jmp 0x408b5d
xor edi, edi
jmp 0x408c27
mov ebp, dword [esp + 0x38]
lea ecx, [ebp + 0xc]
lea edx, [ebp + 8]
mov esi, dword [esp + 0x40]
push esi
push edi
call fcn.004470b0
add esp, 8
mov edi, eax
test bl, 0x40
mov ebx, esi
je 0x408c1f
mov edx, ebp
lea ecx, [ebp + 0x14]
add edx, 0x10
push ebx
push 0x5248d4
call fcn.004470b0
add esp, 8
or edi, eax
jmp 0x408c1f
movzx eax, word [ecx + 0x5247dc]
push eax
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
add esp, 8
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
test eax, eax
je 0x408c5d
mov ebx, dword [esp + 0x40]
push ebx
push edi
push eax
call dword [esi*4 + 0x5238f4]
jmp 0x408c1a
mov esi, dword [esi]
test esi, esi
mov ebx, dword [esp + 0x40]
je 0x408b5d
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x408b0f
mov edi, dword [esi + 8]
mov dword [esp], edi
nop word cs:[eax + eax]
lea eax, [edi + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00403740
add esp, 8
test eax, eax
je 0x408b4d
add edi, 0x3c
dec ebx
jne 0x408b30
jmp 0x408b0f
mov eax, dword [esp + 0x38]
mov dword [eax], edi
cmp dword [esp], 0
mov ebx, dword [esp + 0x40]
jne 0x408bc8
mov esi, dword [esp + 0x38]
mov dword [esi], str.ExtensionObject
mov edi, 0x524c94
mov eax, dword [esp + 8]
jmp 0x408bd3
mov ecx, dword [esp + 0x14]
mov eax, 1
mov edx, 0x524808
movzx esi, word [esp + 0xc]
jmp 0x408ba1
add eax, 2
add edx, 0x78
cmp eax, 0xbf
je 0x408a82
cmp dword [edx - 0x3c], ecx
jne 0x408bac
cmp word [edx - 0x44], si
je 0x408bb8
cmp dword [edx], ecx
jne 0x408b90
cmp word [edx - 8], si
jne 0x408b90
jmp 0x408bb9
dec eax
imul eax, eax, 0x3c
lea edi, [eax + 0x5247a8]
mov eax, dword [esp + 0x38]
mov dword [eax], edi
mov eax, dword [esp + 4]
add eax, 5
mov esi, dword [esp + 0x38]
mov dword [ebx], eax
cmp ebp, 5
je 0x408bdf
cmp ebp, 3
jne 0x408bef
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
movzx eax, word [edi + 0x34]
push eax
push 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x408c68
mov ecx, dword [edi + 0x34]
shr ecx, 0xe
and ecx, 0xfc
push ebx
push edi
push eax
call dword [ecx + 0x5238f8]
add esp, 0xc
mov edi, eax
mov ebp, dword [ebx + 8]
dec ebp
mov word [ebx + 8], bp
mov eax, edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x80060000
jmp 0x408c27
mov edi, 0x80070000
mov eax, dword [esp + 0x10]
cmp eax, 5
je 0x408c4b
cmp eax, 3
jne 0x408c1f
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x408c1f
mov edi, 0x80030000
mov ebx, dword [esp + 0x40]
jmp 0x408c23
mov edi, 0x80030000
jmp 0x408c1f