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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48b9cd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4194
call fcn.004813f0
mov eax, dword [0x4d6394]
xor eax, esp
mov dword [esp + 0x4190], eax
push ebx
push esi
push edi
mov eax, dword [0x4d6394]
xor eax, esp
push eax
lea eax, [esp + 0x41a8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [esp + 0x160]
mov eax, edi
mov dword [esp + 0x20], edi
call fcn.00407920
lea esi, [esp + 0x10c]
mov eax, edi
mov dword [esp + 0x41b0], 0
call fcn.00407950
mov edi, 1
mov ebx, esi
mov byte [esp + 0x41b0], 1
call fcn.00412430
mov ecx, dword [esp + 0x120]
dec ecx
cmp eax, ecx
je 0x40ffb0
push edi
mov eax, 0x4b47f0
mov ecx, esi
call fcn.0040c1a0
mov eax, dword [esp + 0x164]
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x178], 8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], 0x42be60
mov dword [esp + 0x2c], 0x42be80
mov dword [esp + 0x54], 0x42be60
mov dword [esp + 0x58], 0x42be80
jae 0x40fff4
lea eax, [esp + 0x164]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [0x4a427c]
mov dword [esp + 0x50], eax
cmp eax, 0xffffffff
jne 0x41007a
call dword [0x4a414c]
mov esi, eax
cmp esi, edi
je 0x41007a
mov ebx, 8
cmp dword [esp + 0x124], ebx
jb 0x41003e
mov edx, dword [esp + 0x110]
push edx
call fcn.00472191
add esp, 4
xor eax, eax
cmp dword [esp + 0x178], ebx
mov word [esp + 0x110], ax
mov dword [esp + 0x120], edi
mov dword [esp + 0x124], 7
jb 0x410073
mov ecx, dword [esp + 0x164]
push ecx
call fcn.00472191
add esp, 4
mov eax, esi
jmp 0x410b4d
lea edx, [esp + 0x48]
mov dword [esp + 0x48], 0x42cc80
mov dword [esp + 0x4c], 0x42ccb0
mov dword [esp + 0x17c], 0x42f470
mov dword [esp + 0x180], 0x42f4d0
mov dword [esp + 0x184], 0x42f4e0
mov dword [esp + 0x188], 0x42f540
mov dword [esp + 0x18c], edx
mov dword [esp + 0x194], edi
mov dword [esp + 0x190], edi
call fcn.0042bee0
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
call fcn.0042edb0
mov esi, eax
add esp, 8
cmp esi, edi
je 0x410160
lea edi, [esp + 0x28]
lea eax, [esp + 0x64]
call fcn.0042ceb0
xor edi, edi
mov dword [esp + 0x24], esi
cmp esi, edi
je 0x410191
cmp dword [esp + 0x124], 8
jb 0x410182
mov edx, dword [esp + 0x110]
push edx
call fcn.00472191
add esp, 4
xor eax, eax
cmp dword [esp + 0x178], 8
jmp 0x410047
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x20]
mov edx, dword [esi]
dec eax
push eax
push edi
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x1c]
push 0xbd0
mov ecx, esi
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x3c], edi
mov dword [esp + 0x6c], edi
call eax
push eax
call dword [0x4a43f8]
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push edi
push 0x64
push 0x65
mov ecx, esi
call eax
push eax
call dword [0x4a4400]
mov dword [esp + 0x14], edi
cmp dword [esp + 0x80], edi
jbe 0x4109d1
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x1c], ecx
xor esi, esi
push 0xffffffffffffffff
xor edx, edx
mov edi, 7
push esi
lea eax, [esp + 0x114]
lea ecx, [esp + 0xdc]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], esi
mov word [esp + 0xe0], dx
call fcn.0040c280
mov byte [esp + 0x41b0], 2
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0xf8], ax
push esi
lea eax, [esp + 0x114]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x110], edi
mov dword [esp + 0x10c], esi
call fcn.0040c280
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x41b0], 3
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], esi
mov esi, dword [edi + ecx*4 + 4]
mov edx, ecx
sub esi, dword [edi + edx*4]
cmp esi, dword [esp + 0x40]
jbe 0x4102be
push ebx
call fcn.00473577
lea eax, [esi + esi]
add esp, 4
mov dword [esp + 0x40], esi
test eax, eax
je 0x4108d5
push eax
call fcn.00473654
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4108dd
mov ebx, eax
mov esi, dword [esp + 0x14]
mov eax, dword [edi + esi*4]
mov ecx, dword [edi + esi*4 + 4]
sub ecx, eax
test ebx, ebx
je 0x4102f0
mov edx, dword [esp + 0xa8]
lea edx, [edx + eax*2]
test ecx, ecx
jbe 0x4102f0
mov eax, ebx
sub edx, ebx
mov di, word [edx + eax]
mov word [eax], di
add eax, 2
sub ecx, 1
jne 0x4102e1
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x198]
push esi
push ecx
lea eax, [esp + 0x88]
call fcn.0042f1d0
add esp, 0x24
mov dword [esp + 0x24], eax
test eax, eax
jne 0x410955
xor edi, edi
cmp word [ebx], di
je 0x41040a
mov esi, ebx
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x114]
lea ecx, [esp + 0x130]
mov dword [esp + 0x148], 7
mov dword [esp + 0x144], 0
mov word [esp + 0x134], dx
call fcn.0040c280
mov byte [esp + 0x41b0], 4
cmp word [esi], 0x2f
jne 0x4103d9
xor eax, eax
mov word [esi], ax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410392
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x12c]
call fcn.0040c1a0
cmp dword [esp + 0x140], 8
mov eax, dword [esp + 0x12c]
jae 0x4103c8
lea eax, [esp + 0x12c]
push 0
push eax
call dword [0x4a4280]
mov ecx, 0x5c
mov word [esi], cx
mov byte [esp + 0x41b0], 3
cmp dword [esp + 0x140], 8
jb 0x4103fb
mov edx, dword [esp + 0x12c]
push edx
call fcn.00472191
add esp, 4
inc edi
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x410344
mov eax, ebx
mov esi, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410414
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0xd8]
call fcn.0040c1a0
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x19], 0
mov eax, dword [esp + 0xd8]
je 0x4104d5
cmp dword [esp + 0xec], esi
jae 0x410457
lea eax, [esp + 0xd8]
push 0
push eax
call dword [0x4a4280]
cmp dword [esp + 0x108], esi
jb 0x410479
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00472191
add esp, 4
xor edx, edx
mov edi, 7
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], dx
cmp dword [esp + 0xec], esi
jb 0x4104bb
mov eax, dword [esp + 0xd8]
push eax
call fcn.00472191
add esp, 4
xor ecx, ecx
mov dword [esp + 0xe8], 0
mov word [esp + 0xd8], cx
jmp 0x4108ae
cmp dword [esp + 0xec], esi
jae 0x4104e5
lea eax, [esp + 0xd8]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [0x4a427c]
mov esi, eax
mov dword [esp + 0x3c], esi
cmp esi, 0xffffffff
jne 0x410740
call dword [0x4a414c]
test eax, eax
je 0x410740
push esi
push 0
lea eax, [esp + 0xdc]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x40], 1
call fcn.0040c280
push 1
lea ebx, [esp + 0xd8]
call fcn.0040c410
push 1
mov esi, eax
call fcn.0040c410
mov ecx, dword [esp + 0xe8]
sub ecx, esi
lea edx, [eax + 1]
mov eax, ebx
dec ecx
push eax
lea esi, [esp + 0x12c]
call fcn.0040b8f0
lea ecx, [esp + 0x10c]
push ecx
mov ebx, 0x4b7608
lea esi, [esp + 0xbc]
mov byte [esp + 0x41b4], 5
call fcn.0040d860
add esp, 4
push 0xffffffffffffffff
xor edi, edi
push edi
lea ecx, [esp + 0xdc]
mov byte [esp + 0x41b8], 6
call fcn.0040c280
mov ebx, 8
mov byte [esp + 0x41b0], 5
cmp dword [esp + 0xd0], ebx
jb 0x4105cf
mov edx, dword [esp + 0xbc]
push edx
call fcn.00472191
add esp, 4
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], ebx
jae 0x4105e6
lea eax, [esp + 0xd8]
push edi
push eax
call fcn.004730bb
add esp, 8
test eax, eax
je 0x410613
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], ebx
jae 0x41060b
lea eax, [esp + 0xd8]
push edi
push eax
call dword [0x4a4280]
push edi
lea eax, [esp + 0x12c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0xdc]
call fcn.0040c0e0
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], ebx
jae 0x410642
lea eax, [esp + 0xd8]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [0x4a427c]
mov esi, eax
mov dword [esp + 0x3c], esi
cmp esi, 0xffffffff
jne 0x41071f
call dword [0x4a414c]
cmp eax, edi
je 0x41071f
cmp dword [esp + 0x140], ebx
jb 0x41068f
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.00472191
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], edi
mov word [esp + 0x12c], dx
cmp dword [esp + 0x108], ebx
jb 0x4106c5
mov eax, dword [esp + 0xf4]
push eax
call fcn.00472191
add esp, 4
xor ecx, ecx
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], edi
mov word [esp + 0xf4], cx
cmp dword [esp + 0xec], ebx
jb 0x4106fe
mov edx, dword [esp + 0xd8]
push edx
call fcn.00472191
add esp, 4
mov ebx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], edi
mov word [esp + 0xd8], ax
jmp 0x4108b5
mov byte [esp + 0x41b0], 3
cmp dword [esp + 0x140], ebx
jb 0x410740
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.00472191
add esp, 4
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
add eax, edx
push ecx
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.0042cb70
add esp, 4
test eax, eax
jne 0x41083b
cmp dword [esp + 0x18], ebx
jne 0x41083b
cmp esi, 0xffffffff
je 0x4107b8
push esi
call dword [0x4a4274]
test eax, eax
jne 0x4107b8
call dword [0x4a414c]
test eax, eax
je 0x4107b8
lea esi, [esp + 0xf0]
call fcn.0040b800
lea esi, [esp + 0xd4]
mov byte [esp + 0x41b0], 1
call fcn.0040b800
mov ebx, dword [esp + 0x10]
jmp 0x4108b5
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x1d], 0
mov esi, 8
je 0x4107e9
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], esi
jae 0x4107de
lea eax, [esp + 0xd8]
mov edx, dword [ecx + 0x14]
push edx
push eax
call dword [0x4a424c]
cmp dword [esp + 0x38], 0
je 0x410828
mov ecx, dword [esp + 0xf4]
cmp dword [esp + 0x108], esi
jae 0x410807
lea ecx, [esp + 0xf4]
mov eax, dword [esp + 0xd8]
cmp dword [esp + 0xec], esi
jae 0x41081e
lea eax, [esp + 0xd8]
push 5
push ecx
push eax
call dword [0x4a4248]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x188], eax
jmp 0x41078f
mov ebx, 8
cmp dword [esp + 0x108], ebx
jb 0x410859
mov edx, dword [esp + 0xf4]
push edx
call fcn.00472191
add esp, 4
xor esi, esi
xor eax, eax
mov edi, 7
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], esi
mov word [esp + 0xf4], ax
cmp dword [esp + 0xec], ebx
jb 0x410899
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.00472191
add esp, 4
mov ebx, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0xe8], esi
mov word [esp + 0xd8], dx
mov dword [esp + 0xec], edi
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 0x20
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x80]
jb 0x4101f6
jmp 0x4109d1
mov dword [esp + 0x10], 0
mov edi, 8
mov dword [esp + 0x24], 2
cmp dword [esp + 0x108], edi
jb 0x410903
mov eax, dword [esp + 0xf4]
push eax
call fcn.00472191
add esp, 4
xor ecx, ecx
mov esi, 7
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], cx
cmp dword [esp + 0xec], edi
jb 0x410945
mov edx, dword [esp + 0xd8]
push edx
call fcn.00472191
add esp, 4
mov ebx, dword [esp + 0x10]
xor eax, eax
mov word [esp + 0xd8], ax
jmp 0x4109bf
mov edi, 8
cmp dword [esp + 0x108], edi
jb 0x410973
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00472191
add esp, 4
xor edx, edx
mov esi, 7
mov byte [esp + 0x41b0], 1
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], 0
mov word [esp + 0xf4], dx
cmp dword [esp + 0xec], edi
jb 0x4109b5
mov eax, dword [esp + 0xd8]
push eax
call fcn.00472191
add esp, 4
xor ecx, ecx
mov word [esp + 0xd8], cx
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x80]
push 0
dec eax
mov dword [ecx + 0x188], edx
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1c]
push 0xbd1
call eax
push eax
call dword [0x4a43f8]
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
call dword [esp + 0x34]
lea edi, [esp + 0x30]
lea eax, [esp + 0x6c]
call fcn.0042ceb0
push ebx
call fcn.00473577
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp eax, 0xffffffff
je 0x410a45
push eax
call dword [0x4a4274]
test eax, eax
jne 0x410a3d
call dword [0x4a414c]
jmp 0x410a45
mov dword [esp + 0x50], 0xffffffff
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0xbd2
call edx
push eax
call dword [0x4a43f8]
lea eax, [esp + 0x10c]
push eax
mov ebx, 0x4b7608
lea esi, [esp + 0x148]
call fcn.0040d860
mov eax, dword [esp + 0x14c]
mov edi, 8
add esp, 4
cmp dword [esp + 0x15c], edi
jae 0x410a98
lea eax, [esp + 0x148]
xor ebx, ebx
push ebx
push eax
call fcn.004730bb
add esp, 8
test eax, eax
jne 0x410ac9
mov eax, dword [esp + 0x148]
cmp dword [esp + 0x15c], edi
jae 0x410abf
lea eax, [esp + 0x148]
push 4
push ebx
push eax
call dword [0x4a4248]
cmp dword [esp + 0x15c], edi
jb 0x410ae2
mov ecx, dword [esp + 0x148]
push ecx
call fcn.00472191
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x15c], esi
mov dword [esp + 0x158], ebx
mov word [esp + 0x148], dx
cmp dword [esp + 0x124], edi
jb 0x410b18
mov eax, dword [esp + 0x110]
push eax
call fcn.00472191
add esp, 4
xor ecx, ecx
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], cx
cmp dword [esp + 0x178], edi
jb 0x410b49
mov edx, dword [esp + 0x164]
push edx
call fcn.00472191
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x41a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4190]
xor ecx, esp
call fcn.0047219c
mov esp, ebp
pop ebp
ret 4