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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc4]
xor ebx, ebx
or eax, 0xffffffff
cmp esi, ebx
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
je 0x40fe17
mov al, byte [esi]
test al, al
je 0x40fbac
mov ecx, dword [0x46dc4c]
mov ebp, 1
cmp ecx, ebp
jle 0x40fb8d
and eax, 0xff
push 8
push eax
call fcn.0041f62f
add esp, 8
jmp 0x40fb9e
mov ecx, dword [str.________________________________H]
and eax, 0xff
mov al, byte [ecx + eax*2]
and eax, 8
cmp eax, ebx
je 0x40fbb1
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40fb6c
jmp 0x40fbb1
mov ebp, 1
cmp byte [esi], 0
je 0x40fc19
lea edi, [esp + 0x88]
sub edi, esi
cmp dword [0x46dc4c], ebp
jle 0x40fbd8
xor edx, edx
push 8
mov dl, byte [esi]
push edx
call fcn.0041f62f
add esp, 8
jmp 0x40fbe8
mov ecx, dword [str.________________________________H]
xor eax, eax
mov al, byte [esi]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x40fc19
mov al, byte [esi]
cmp al, 0x6f
je 0x40fc09
cmp al, 0x4f
je 0x40fc09
cmp al, 0x6c
je 0x40fc03
cmp al, 0x4c
je 0x40fc03
mov byte [edi + esi], al
jmp 0x40fc0d
mov byte [edi + esi], 0x31
jmp 0x40fc0d
mov byte [edi + esi], 0x30
inc ebx
inc esi
cmp ebx, 0x35
jge 0x40fc19
cmp byte [esi], 0
jne 0x40fbbf
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + ebx + 0x88], 0
mov esi, dword [esp + 0xc4]
repne scasb al, byte es:[edi]
mov edx, dword [esi*4 + 0x46c5a4]
not ecx
add ecx, 0xfffffff9
cmp edx, ecx
jne 0x40fdf9
push edx
lea edx, [esp + 0x92]
push edx
lea eax, [esp + 0x5c]
push 0x1c
push eax
push esi
call fcn.0040f970
add esp, 0x14
cmp eax, 0xffffffff
je 0x40fdf9
mov ebx, dword [0x45a770]
lea esi, [esp + 0x54]
mov edi, 7
mov ecx, dword [esi]
push ecx
call ebx
mov dword [esi], eax
add esi, 4
dec edi
jne 0x40fc7b
mov ecx, 7
lea esi, [esp + 0x54]
lea edi, [esp + 0x38]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xcc]
test edi, edi
je 0x40fcc7
cmp byte [esp + 0x8a], 0x45
je 0x40fcc7
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
jmp 0x40fcc9
xor ebp, ebp
lea edx, [ebp + 1]
push edx
call fcn.0041e9d4
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
je 0x40fe22
mov ecx, 6
mov eax, 0xa6a6a6a6
lea edi, [esp + 0x70]
xor esi, esi
rep stosd dword es:[edi], eax
xor edi, edi
mov ebx, 1
test ebp, ebp
jle 0x40fd6a
mov ecx, dword [esp + 0xcc]
xor eax, eax
mov al, byte [edi + ecx]
push eax
call fcn.0041f4f4
mov edx, dword [esp + 0x14]
and al, 0x7f
add esp, 4
mov byte [esi + edx], al
mov ecx, dword [0x46dc4c]
cmp ecx, 1
jle 0x40fd3b
and eax, 0xff
push 8
push eax
call fcn.0041f62f
add esp, 8
jmp 0x40fd4c
mov ecx, dword [str.________________________________H]
and eax, 0xff
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x40fd5e
test ebx, ebx
je 0x40fd57
dec esi
jmp 0x40fd60
mov ebx, 1
jmp 0x40fd60
xor ebx, ebx
inc esi
inc edi
cmp edi, ebp
jl 0x40fd00
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
add esi, edx
push eax
push esi
push edx
call fcn.0040faa0
mov al, byte [esp + 0x24]
mov cl, byte [esp + 0x33]
mov byte [esp + 0x33], al
add esp, 0xc
mov byte [esp + 0x18], cl
xor al, al
xor ecx, ecx
mov bl, byte [esp + ecx + 0x38]
add al, bl
inc ecx
cmp ecx, 0x18
jl 0x40fd8f
xor ecx, ecx
mov bl, byte [esp + ecx + 0x18]
add al, bl
inc ecx
cmp ecx, 0x10
jl 0x40fd9d
cmp byte [esp + 0x50], al
jne 0x40fdf9
mov edx, dword [esp + 0xd0]
push 0xc0
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x28]
push 0x80
push edx
call fcn.004108a0
add esp, 0x18
cmp eax, 0xffffffff
je 0x40fdf9
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0041eb0e
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xb0
ret