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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
sub esp, 0x10
mov dword [esp + 0x2c], ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x28], 3
mov edx, dword [edi]
mov eax, dword [eax + edx*4]
mov edx, esp
movsx ecx, word [eax + 0xa]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
lea ecx, [ebx + 0x134]
mov dword [edx + 0xc], eax
inc dword [eax]
call fcn.00407e50
mov dword [esp + 0x3c], eax
test eax, eax
je 0x443b6f
mov eax, dword [ebx + 0x148]
xor ecx, ecx
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [edi]
mov dword [esp + 0x70], eax
inc ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x4c], 0x48eb74
mov dword [esp + 0x50], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0x490c88
mov dword [edi], ecx
cmp word [eax + 8], 0x47
jne 0x443b87
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ecx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x18], ecx
push eax
push edi
push esi
mov ecx, ebx
call fcn.0040ee18
test eax, eax
js 0x443f5f
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x10]
cmp eax, dword [0x4c42c0]
jg 0x4101fc
test eax, eax
jle 0x4101fc
shl eax, 4
add eax, dword [0x4c42fc]
mov edi, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
cmp word [eax + 8], 0
jne 0x40f938
cmp dword [eax], 0x2b
je 0x443b99
mov edx, 3
xor eax, eax
mov esi, edx
cmp dword [ecx + 0x14], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
jg 0x40feb0
mov al, byte [ebp + 8]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
cmp esi, dword [edi + 0x18]
jl 0x443f46
cmp esi, dword [edi + 0x14]
jg 0x443f46
cmp edx, ecx
jne 0x443f46
mov eax, dword [edi + 0x10]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
test eax, eax
js 0x443cc0
lea eax, [esp + 0x2c]
mov ecx, 0x4c42a0
push eax
call fcn.0040804c
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x443ccd
cmp dword [edi + 0x14], 1
jge 0x40fc8a
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
jmp 0x40fcb0
cmp edx, ecx
jae 0x41011b
shl esi, 2
inc eax
mov dword [esp + 0x28], eax
xor bl, bl
mov dword [esp + 0x40], 0
mov eax, dword [edi + esi]
cmp word [eax + 8], 0
je 0x443ba7
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov eax, dword [eax + edx*4]
cmp word [eax + 8], 0x33
je 0x40feea
xor bl, bl
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x64]
cmp esi, eax
je 0x41002b
push 1
call fcn.0041fd2e
add esp, 4
test eax, eax
je 0x410203
mov byte [eax], bl
mov ecx, dword [esp + 0x60]
mov dword [ecx + esi*4], eax
inc esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x64], esi
call int.004093c0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], 1
mov dword [esp + 0x70], 0
cmp dword [esp + 0x54], eax
je 0x410077
push 0x10
call fcn.0041fd2e
mov esi, eax
add esp, 4
test esi, esi
je 0x41020a
lea eax, [esp + 0x70]
mov dword [esi + 8], 0
push eax
mov ecx, esi
call fcn.00409480
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
push eax
lea eax, [esp + 0x28]
mov dword [edx + ecx*4], esi
inc ecx
test bl, bl
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x20]
jne 0x443c14
push dword [edx + ecx*4 - 4]
mov ecx, ebx
push eax
push edi
call int.00409990
test eax, eax
js 0x443f5f
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi*4]
cmp word [eax + 8], 0x41
je 0x410163
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp edx, ecx
je 0x410117
mov eax, dword [edi + 4]
mov eax, dword [eax + edx*4]
cmp word [eax + 8], 0x40
jne 0x443c5e
lea eax, [edx + 1]
cmp eax, ecx
je 0x443c5e
mov edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], edx
mov edi, dword [eax + 4]
mov eax, dword [edi + esi*4]
cmp word [eax + 8], 0x40
jne 0x410008
inc esi
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [ebx + 0x14]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
jl 0x40feb0
jmp 0x41011b
add eax, eax
mov dword [esp + 0x48], eax
cmp eax, 8
jae 0x41003f
mov eax, 8
mov dword [esp + 0x48], eax
xor ecx, ecx
mov dword [esp + 0x68], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fd2e
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x41019d
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x64]
jmp 0x40fefa
add eax, eax
mov dword [esp + 0x38], eax
cmp eax, 8
jae 0x41008b
mov eax, 8
mov dword [esp + 0x38], eax
xor ecx, ecx
mov dword [esp + 0x58], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fd2e
mov edx, dword [esp + 0x54]
add esp, 4
mov esi, eax
test edx, edx
jne 0x4101c8
mov dword [esp + 0x50], esi
jmp 0x40ff41
mov eax, dword [esp + 0x28]
cmp eax, 1
mov al, byte [ebp + 8]
jne 0x40f961
test al, al
je 0x40f961
jmp 0x443c77
inc esi
xor edx, edx
jmp 0x410170
mov eax, dword [ecx + esi*4]
movzx eax, word [eax + 8]
cmp ax, 0x47
je 0x410211
cmp ax, 0x48
je 0x4101f7
cmp ax, 0x40
je 0x410190
inc esi
jmp 0x410170
test edx, edx
jne 0x41018d
mov dword [esp + 0x10], esi
jmp 0x40ffc0
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x41006a
shl ecx, 2
push ecx
push eax
push esi
call fcn.0041fdb0
add esp, 0xc
push dword [esp + 0x60]
call fcn.0041fda4
add esp, 4
jmp 0x41006a
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4100b6
lea ecx, [eax*4]
push ecx
push edx
push esi
call fcn.0041fdb0
add esp, 0xc
push dword [esp + 0x50]
call fcn.0041fda4
add esp, 4
jmp 0x4100b6
dec edx
js 0x410194
jmp 0x41018d
xor eax, eax
jmp 0x40f91f
xor eax, eax
jmp 0x40ff0e
xor esi, esi
jmp 0x40ff68
inc edx
jmp 0x41018d
push dword [esp + 0x44]
mov ecx, ebx
push 0x85
call fcn.00468bc2
or eax, 0xffffffff
jmp 0x40fc81
push dword [esp + 0x44]
mov ecx, ebx
push 0x6f
call fcn.00468bc2
jmp 0x443f5f
mov edx, 4
mov dword [esp + 0x18], edx
jmp 0x40f93d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + eax + 4]
cmp word [eax + 8], 0x33
je 0x443bd6
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + esi + 4]
mov eax, dword [eax + esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
mov ecx, dword [esp + 0x10]
je 0x443c3b
mov eax, dword [esp + 0x6c]
mov eax, dword [esi + eax]
mov eax, dword [eax]
cmp eax, 0x24
jne 0x443be8
mov bl, 1
jmp 0x443bf5
cmp eax, 0x1e
jne 0x443c3b
mov dword [esp + 0x40], 0x100
inc ecx
mov eax, dword [edi + ecx*4]
lea esi, [ecx*4]
mov dword [esp + 0x10], ecx
cmp word [eax + 8], 0
mov eax, dword [esp + 0x6c]
je 0x443bb6
jmp 0x40fed8
push 0
push 1
push dword [esp + 0x4c]
push dword [edx + ecx*4 - 4]
mov ecx, ebx
push eax
push edi
call fcn.004792ae
test eax, eax
js 0x443f5f
mov esi, dword [esp + 0x10]
inc esi
jmp 0x410194
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4 + 4]
mov ecx, dword [esp + 0x1c]
movsx eax, word [eax + 0xa]
push eax
push 0x91
call fcn.00468bc2
jmp 0x443f5f
mov eax, dword [edi + 4]
mov ecx, ebx
mov eax, dword [eax + edx*4]
movsx eax, word [eax + 0xa]
push eax
push 0x6f
call fcn.00468bc2
jmp 0x443f5f
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004791a1
test eax, eax
jne 0x443cb3
lea ecx, [esp + 0x5c]
call fcn.0041f64b
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x443cb3
mov byte [esp + 0x37], 0
mov esi, eax
lea eax, [esp + 0x37]
push eax
lea ecx, [esp + 0x60]
call fcn.0045573e
dec esi
jne 0x443ca2
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
jmp 0x40f95e
mov dword [esp + 0x30], 0
jmp 0x40f99a
mov eax, dword [esi + 0x18]
test eax, eax
je 0x443cde
push eax
lea ecx, [esp + 0x30]
call fcn.0040827b
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x443cef
push eax
lea ecx, [esp + 0x30]
call fcn.0040827b
cmp byte [esi + 0x10], 0
jne 0x443d02
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x443d02
push ecx
call fcn.0045509d
mov ecx, esi
call fcn.00405832
push esi
call fcn.0041fda4
add esp, 4
jmp 0x40f9b5
test al, al
jne 0x443f59
push dword [esp + 0x44]
mov ecx, ebx
push 0x70
call fcn.00468bc2
jmp 0x443f5f
mov eax, dword [ebp + 0x10]
add dword [eax], 0xfffffffe