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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x90
lea eax, [ebp - 0x70]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x40f6fa
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
jne 0x40f704
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov dword [esp + 8], 0x2558
mov dword [esp + 4], 1
mov dword [esp], edx
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f754
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0x10
cmp dword [ebp - 0x14], 0
je 0x40f74a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x1c], edx
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp - 0x10]
add eax, 0x40
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041b1c8
test eax, eax
jne 0x40f796
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x54]
movzx eax, ax
and eax, 0x61
test eax, eax
je 0x40f7e5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 5
cmp dword [ebp - 0x1c], 0
je 0x40f7c3
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp + 0x10]
and eax, 0x400
test eax, eax
jne 0x40f848
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x56]
test ax, ax
je 0x40f848
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x56]
cmp ax, 8
je 0x40f848
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 4
cmp dword [ebp - 0x24], 0
je 0x40f826
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2550], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x498], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x49c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4a0], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0x44]
mov dword [esp + 0x10], 0x1e
mov esi, dword [ebp - 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call ecx
cmp eax, 0x1e
je 0x40f93f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x14
cmp dword [ebp - 0x2c], 0
je 0x40f91d
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp - 0xc]
add edx, 1
movzx edx, byte [edx]
movzx edx, dl
shl edx, 8
or edx, eax
mov eax, dword [ebp - 0xc]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp - 0xc]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
or eax, edx
cmp eax, 0x4034b50
je 0x40f9c0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 9
cmp dword [ebp - 0x34], 0
je 0x40f99e
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp - 0xc]
add ecx, 0x1a
movzx ecx, byte [ecx]
movzx ecx, cl
mov ebx, dword [ebp - 0xc]
add ebx, 0x1a
add ebx, 1
movzx ebx, byte [ebx]
movzx ebx, bl
shl ebx, 8
mov esi, ecx
or esi, ebx
mov ecx, dword [ebp - 0xc]
add ecx, 0x1c
movzx ecx, byte [ecx]
movzx ecx, cl
mov ebx, dword [ebp - 0xc]
add ebx, 0x1c
add ebx, 1
movzx ebx, byte [ebx]
movzx ebx, bl
shl ebx, 8
or ecx, ebx
add ecx, esi
add ecx, 0x1e
mov ebx, 0
add eax, ecx
adc edx, ebx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
mov ebx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
add ecx, eax
adc ebx, edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp eax, ecx
mov eax, edx
sbb eax, ebx
jae 0x40fa86
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 9
cmp dword [ebp - 0x3c], 0
je 0x40fa64
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x40faec
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x498], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
jmp 0x40fbe8
mov eax, dword [ebp + 0x10]
and eax, 0x400
test eax, eax
jne 0x40fbb4
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x56]
test ax, ax
je 0x40fbb4
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov ebx, 0x10000
mov ecx, 0
cmp ebx, eax
sbb ecx, edx
jae 0x40fb2f
mov eax, 0x10000
mov edx, 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x498], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x498]
test eax, eax
jne 0x40fbc5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0x10
cmp dword [ebp - 0x44], 0
je 0x40fb92
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp + 0x10]
and eax, 0x400
test eax, eax
jne 0x40fcb2
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x56]
test ax, ax
je 0x40fcb2
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4a4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 1
mov dword [esp], edx
call eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x49c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x49c]
test eax, eax
jne 0x40fcb2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0x10
cmp dword [ebp - 0x4c], 0
je 0x40fc68
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x498]
test eax, eax
je 0x40fc93
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x498]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, 0
jmp 0x40fcb5
mov eax, dword [ebp - 0x10]
add esp, 0x90
pop ebx
pop esi
pop ebp
ret