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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3e4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x40f81f
cmp eax, 0xffffffff
jne 0x40f896
mov eax, 0x1000
call fcn.00411260
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], ebx
jne 0x40f83e
xor eax, eax
jmp 0x40febe
push ebx
push ebx
push esi
push ebx
call dword [0x413f24]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp + 8]
push 0x40f7d5
push dword [eax + 8]
call dword [0x413c90]
mov ecx, dword [ebp + 8]
push 4
mov dword [ecx + 0x34], eax
pop edi
lea eax, [esp + 0x34]
push eax
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x38]
push ecx
push 0x2d
mov dword [esp + 0x40], edi
push dword [eax + 8]
call dword [0x413c6c]
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push 0x2d
push dword [eax + 8]
call dword [0x413c94]
push 0x28
pop edx
push edx
push ebx
lea eax, [esp + 0x58]
push eax
call fcn.00411341
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 8]
push eax
push 8
pop edi
push edi
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x74], 0x1000
push dword [eax + 8]
call dword [0x413c8c]
test eax, eax
jne 0x40f945
call dword [0x413ed4]
mov dword [esp + 0x2c], eax
cmp eax, 0x3e5
jne 0x40f994
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x40f904
inc dword [eax]
jmp 0x40f837
lea eax, [esp + 0x78]
push eax
call dword [0x413bd0]
push esi
push ebx
push ebx
push ebx
lea eax, [esp + 0x88]
push eax
call dword [0x413bb4]
test eax, eax
jne 0x40f8f9
mov eax, dword [ebp + 8]
push 0x4bf
push 0xffffffffffffffff
push ebx
add eax, 0x30
push eax
push esi
call dword [0x413bcc]
test eax, eax
jne 0x40f904
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
call dword [0x413eac]
jmp 0x40f8b3
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x68], ebx
je 0x40f998
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
add eax, dword [esp + 0x68]
push dword [ecx + 0x18]
call fcn.0041122c
cmp eax, ebx
je 0x40f990
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 8]
push dword [esp + 0x68]
mov ecx, dword [eax + 0x1c]
push dword [eax + 0x3c]
add ecx, dword [eax + 0x18]
push ecx
call fcn.004112af
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x68]
add dword [eax + 0x1c], ecx
jmp 0x40f8b3
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
push 4
lea ecx, [eax + 0x38]
push ecx
push 0x2d
push dword [eax + 8]
call dword [0x413c94]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0xffffffff
jne 0x40f9b9
xor ecx, ecx
jmp 0x40f9bc
mov ecx, dword [eax + 0x34]
push ecx
push dword [eax + 8]
call dword [0x413c90]
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
call dword [0x413f0c]
mov eax, dword [ebp + 8]
cmp dword [esp + 0x14], ebx
je 0x40fe25
mov dword [esp + 0x3c], ebx
cmp dword [eax + 0x28], ebx
jbe 0x40fe25
mov dword [esp + 0x30], ebx
mov edi, dword [eax + 0x24]
add edi, dword [esp + 0x30]
mov ecx, dword [edi + 0x14]
cmp ecx, ebx
je 0x40fa2f
cmp byte [ecx], 0x2a
jne 0x40fa09
cmp byte [ecx + 1], 0
je 0x40fa2f
push 8
push ebx
push ebx
push dword [eax + 0x1c]
push dword [eax + 0x18]
push ecx
call dword [0x413ef0]
mov ecx, dword [edi + 0x14]
mov edx, eax
call fcn.0040b301
test al, al
mov eax, dword [ebp + 8]
je 0x40fe0f
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
add edx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], edx
cmp ecx, edx
jae 0x40fc58
jmp 0x40fa4f
xor ebx, ebx
movzx esi, word [ecx]
add esi, ecx
movzx edx, word [esi]
add edx, esi
mov dword [esp + 0x1c], edx
cmp esi, edx
jae 0x40fc58
cmp edx, dword [esp + 0x34]
jae 0x40fc56
or dword [esp + 0xc], 0xffffffff
xor edx, edx
mov dword [esp + 0x10], edx
cmp word [ecx + 4], dx
je 0x40faab
movzx ebx, word [ecx + 4]
push 0xb
push edx
lea edx, [esp + 0x18]
push edx
movzx edx, word [ecx]
push dword [eax + 0x1c]
sub edx, ebx
push dword [eax + 0x18]
add ecx, ebx
call fcn.0040b301
test al, al
je 0x40fc39
mov eax, dword [ebp + 8]
xor edx, edx
cmp word [esi + 4], dx
je 0x40fae4
movzx ecx, word [esi + 4]
push 0xb
lea ebx, [esp + 0x10]
push ebx
push edx
mov edx, dword [eax + 0x1c]
sub edx, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
add eax, dword [esp + 0x1c]
push edx
movzx edx, word [esi]
sub edx, ecx
push eax
add ecx, esi
call fcn.0040b301
test al, al
je 0x40fc39
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
movzx ecx, word [edx + 4]
test cx, cx
je 0x40faff
movzx edx, word [edx]
movzx ecx, cx
sub edx, ecx
mov dword [esp + 0x20], edx
jmp 0x40fb08
and dword [esp + 0x20], 0
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp word [esi + 4], cx
jne 0x40fb14
mov dword [esp + 0xc], ecx
test byte [edi], 1
je 0x40fbb2
cmp dword [esp + 0xc], ecx
jne 0x40fb2e
mov eax, dword [eax + 0x1c]
sub eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x28]
add edx, eax
lea eax, [edx + ebx + 4]
lea esi, [esp + 0x18]
call fcn.00411219
test al, al
je 0x40fc53
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + 4]
mov esi, dword [esp + 0x18]
test ax, ax
jbe 0x40fb75
push dword [esp + 0x20]
movzx eax, ax
add eax, ecx
push eax
lea eax, [ebx + esi]
push eax
call fcn.004112af
add ebx, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x18]
push dword [esp + 0xc]
add ecx, dword [esp + 0x14]
lea eax, [ebx + esi]
push ecx
push eax
call fcn.004112af
test byte [edi], 4
je 0x40fb98
add ebx, dword [esp + 0xc]
jmp 0x40fba4
push dword [esp + 0xc]
push eax
call fcn.00405337
add ebx, eax
mov byte [ebx + esi], 0xa
inc ebx
mov dword [esp + 0x28], ebx
jmp 0x40fc39
mov ebx, dword [eax + 0x1c]
sub ebx, dword [esp + 0xc]
add ebx, edx
je 0x40fbcf
mov eax, ebx
call fcn.00411260
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [ebp + 8]
jmp 0x40fbd1
xor esi, esi
test esi, esi
je 0x40fc3c
push dword [esp + 0x10]
push dword [eax + 0x18]
push esi
call fcn.004112af
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 4]
add ecx, eax
mov eax, dword [esp + 0x10]
push edx
push ecx
add eax, esi
push eax
call fcn.004112af
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
sub ecx, dword [esp + 0xc]
add eax, dword [esp + 0xc]
sub ecx, dword [esp + 0x10]
add eax, dword [esp + 0x10]
push ecx
push eax
lea eax, [esi + edx]
add eax, dword [esp + 0x18]
push eax
call fcn.004112af
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
call fcn.00411273
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], esi
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx]
add ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x34]
jb 0x40fa4d
jmp 0x40fc56
mov eax, dword [ebp + 8]
xor ebx, ebx
test byte [edi], 1
je 0x40fd7f
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x40fd7f
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0xfff
push dword [eax + 0x3c]
push 0x22
push dword [eax + 8]
call dword [0x413c6c]
test eax, eax
jne 0x40fc99
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], ebx
mov eax, dword [eax + 0x3c]
mov byte [eax], 0
mov eax, dword [esp + 0x28]
mov byte [eax + esi], 0
test byte [edi], 2
je 0x40fd4e
push 0x3c
pop edx
push edx
push ebx
lea eax, [esp + 0xac]
push eax
call fcn.00411341
lea eax, [esp + 0xe0]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [esp + 0x2c]
mov esi, 0x103
mov dword [esp + 0xb0], edx
mov dword [esp + 0xc4], esi
push dword [eax + 0x3c]
call dword [0x413c60]
lea eax, [esp + 0x40]
push eax
call dword [0x414008]
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x48]
sub eax, 0x7d0
push eax
lea eax, [esp + 0xec]
push eax
push 0x403c98
lea eax, [esp + 0x1fc]
push esi
push eax
call dword [0x413dac]
add esp, 0x1c
push dword [esp + 0x28]
lea eax, [esp + 0x1ec]
push dword [esp + 0x1c]
push eax
call fcn.0040d2c8
jmp 0x40fd73
mov ecx, dword [ebp + 8]
push esi
push dword [ecx + 0x3c]
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + eax + 0x1e]
push eax
mov eax, dword [0x413c3c]
push dword [eax + 0x194]
push 5
call fcn.0040d007
add esp, 0x14
push dword [esp + 0x18]
call fcn.00411273
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
je 0x40fdc4
cmp byte [ecx], 0
je 0x40fdc4
push dword [0x4144ac]
call fcn.00411273
push dword [0x4144b0]
call fcn.00411273
push dword [edi + 0xc]
or eax, 0xffffffff
call fcn.00411411
push dword [edi + 0x10]
mov dword [0x4144ac], eax
or eax, 0xffffffff
call fcn.00411411
mov dword [0x4144b0], eax
mov eax, dword [ebp + 8]
test byte [edi], 8
je 0x40fe0f
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
je 0x40fe0f
push ecx
call dword [0x413ef0]
push eax
push dword [edi + 0x10]
lea eax, [esp + 0x80]
push eax
call fcn.00411887
lea eax, [esp + 0x94]
push eax
call dword [0x414008]
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x7c]
push eax
push ebx
push 0x10
pop eax
call fcn.00409639
mov eax, dword [ebp + 8]
inc dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
add dword [esp + 0x30], 0x18
cmp ecx, dword [eax + 0x28]
jb 0x40f9f0
push dword [eax + 0x3c]
call fcn.00411273
mov eax, dword [ebp + 8]
or dword [eax + 4], 0x10
mov edi, 0x4144b4
push edi
call dword [0x414000]
mov esi, dword [ebp + 8]
push dword [esi + 8]
call fcn.0040ea12
add esi, 4
cmp eax, 0xffffffff
je 0x40fe67
imul eax, eax, 0x2c
add eax, dword [0x4144a8]
push 0x2c
push esi
push eax
call fcn.004112af
jmp 0x40fe78
call fcn.0040eab9
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 6
push edi
call dword [0x414004]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, ebx
jbe 0x40feb4
cmp ecx, 0xffffffff
je 0x40feb4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x38]
push 8
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [eax + 8]
push 0x64
call fcn.0040f3b5
mov eax, dword [ebp + 8]
push eax
call fcn.00411273
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4