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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
lea eax, [ebp - 0x70]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x40f531
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
jne 0x40f53b
mov eax, 0
jmp 0x40faf0
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 0x40f58b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x10
cmp dword [ebp - 0x20], 0
je 0x40f581
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], edx
mov eax, 0
jmp 0x40faf0
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.0041be49
test eax, eax
jne 0x40f5cd
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 0x40faf0
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x54]
movzx eax, ax
and eax, 0x61
test eax, eax
je 0x40f61c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 5
cmp dword [ebp - 0x18], 0
je 0x40f5fa
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
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 0x40faf0
mov eax, dword [ebp + 0x10]
and eax, 0x400
test eax, eax
jne 0x40f67f
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x56]
test ax, ax
je 0x40f67f
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x56]
cmp ax, 8
je 0x40f67f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 4
cmp dword [ebp - 0x24], 0
je 0x40f65d
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 0x40faf0
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 ebx, dword [eax + 0x38]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 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], ecx
call ebx
cmp eax, 0x1e
je 0x40f776
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x14
cmp dword [ebp - 0x2c], 0
je 0x40f754
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 0x40faf0
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 0x40f7f7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 9
cmp dword [ebp - 0x34], 0
je 0x40f7d5
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 0x40faf0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
mov ebx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, 0x1a
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp - 0xc]
add edx, 0x1b
movzx edx, byte [edx]
movzx edx, dl
shl edx, 8
or eax, edx
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0x1c
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [ebp - 0xc]
add eax, 0x1d
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or eax, edx
add eax, esi
add eax, 0x1e
mov edx, 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 0x40f8b7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 9
cmp dword [ebp - 0x3c], 0
je 0x40f895
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 0x40faf0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x40f91d
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 0x40fa23
mov eax, dword [ebp + 0x10]
and eax, 0x400
test eax, eax
jne 0x40f9ef
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x56]
test ax, ax
je 0x40f9ef
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x64]
mov eax, dword [eax + 0x60]
mov ecx, 0x10000
mov ebx, 0
cmp ecx, eax
mov esi, ebx
sbb esi, edx
mov esi, ecx
cmovae esi, eax
mov dword [ebp - 0x80], esi
cmovae ebx, edx
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x80]
mov esi, dword [ebp - 0x7c]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], esi
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 0x40fa00
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0x10
cmp dword [ebp - 0x44], 0
je 0x40f9cd
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 0x40faf0
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 0x40faed
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0x56]
test ax, ax
je 0x40faed
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 0x40faed
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0x10
cmp dword [ebp - 0x4c], 0
je 0x40faa3
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 0x40face
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 0x40faf0
mov eax, dword [ebp - 0x10]
add esp, 0xa0
pop ebx
pop esi
pop ebp
ret