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

Disassembly:
push 0xffffffffffffffff
push 0x49fdb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1dc]
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
mov ebp, dword [esp + 0x1d4]
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x24], edx
jbe 0x40f681
call fcn.00478a25
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x40f68e
call fcn.00478a25
push edi
push esi
push ebx
push esi
lea eax, [esp + 0x80]
push eax
push esi
call fcn.00411020
xor esi, esi
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], esi
mov word [esp + 0xdc], si
lea ecx, [esp + 0xd8]
mov dword [esp + 0x1cc], esi
mov byte [esp + 0x1b], 1
call fcn.0043d1a0
test al, al
je 0x41006a
mov ecx, ebp
lea ebx, [esp + 0x130]
call fcn.00443440
mov ecx, dword [esp + 0x28]
push esi
push esi
mov byte [esp + 0x1d4], 1
mov eax, dword [ecx + 0x64]
push 1
push eax
xor ecx, ecx
lea ebx, [esp + 0xe8]
lea edx, [esp + 0x140]
call fcn.00403930
xor ebx, ebx
cmp eax, ebx
jne 0x40f724
mov edx, dword [esp + 0x24]
mov dword [edx], ebx
jmp 0x41002a
cmp eax, 3
jne 0x410020
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x1d4], 2
call fcn.00443ce0
test eax, eax
jne 0x410002
xor esi, esi
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], esi
call fcn.004476d0
test eax, eax
jbe 0x40ffe4
jmp 0x40f77c
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x40f791
mov eax, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40f79a
call fcn.00478a25
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + esi*4]
mov edi, dword [edx + 0x14]
mov dword [esp + 0x20], edi
mov dword [esp + 0x60], ebx
mov esi, dword [esp + 0x5c]
mov ecx, ebp
mov byte [esp + 0x1cc], 3
call fcn.004418f0
cmp edi, ebx
mov ebp, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x60], ebp
je 0x40fdc4
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40f7d9
add eax, 0x3c
jmp 0x40f7dc
lea eax, [ebp + 0x28]
push 0xffffffffffffffff
mov esi, 7
push ebx
add eax, 4
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa0], vtable.CAUVersion.0
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
call fcn.00401b70
mov byte [esp + 0x1cc], 4
push 0xffffffffffffffff
push ebx
lea eax, [edi + 4]
lea ecx, [esp + 0x84]
mov dword [esp + 0x80], vtable.CAUVersion.0
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
call fcn.00401b70
mov byte [esp + 0x1cc], 5
cmp dword [esp + 0x90], ebx
je 0x40f8e6
mov edx, str.LessOrEqual
lea eax, [esp + 0x40]
call fcn.004015e0
lea eax, [esp + 0x98]
push eax
lea ebx, [esp + 0x44]
lea edi, [esp + 0x7c]
mov byte [esp + 0x1d0], 6
call fcn.00442c40
add esp, 4
test al, al
lea ecx, [esp + 0x40]
sete bl
mov byte [esp + 0x1cc], 5
call fcn.00401620
test bl, bl
je 0x40f8db
lea ecx, [esp + 0x78]
call fcn.00455860
lea ecx, [esp + 0x98]
call fcn.00455860
mov byte [esp + 0x1cc], 2
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
xor ebx, ebx
jmp 0x40ffc8
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov esi, 7
push 0xffffffffffffffff
push ebx
lea eax, [edi + 0x24]
lea ecx, [esp + 0xc4]
mov dword [esp + 0xc0], vtable.CAUVersion.0
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], bx
call fcn.00401b70
mov byte [esp + 0x1cc], 7
cmp dword [esp + 0xd0], ebx
je 0x40f989
mov edx, str.LessOrEqual
lea eax, [esp + 0x40]
call fcn.004015e0
lea ecx, [esp + 0xb8]
push ecx
lea ebx, [esp + 0x44]
lea edi, [esp + 0x9c]
mov byte [esp + 0x1d0], 8
call fcn.00442c40
add esp, 4
test al, al
lea ecx, [esp + 0x40]
sete bl
call fcn.00401620
test bl, bl
je 0x40f97e
lea ecx, [esp + 0xb8]
call fcn.00455860
jmp 0x40f8ac
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov esi, 7
lea ecx, [esp + 0xb8]
call fcn.00455860
lea ecx, [esp + 0x78]
call fcn.00455860
lea ecx, [esp + 0x98]
call fcn.00455860
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x1d0], 9
call fcn.00433760
add esp, 4
call fcn.004337b0
mov ecx, eax
lea edx, [esp + 0x40]
call fcn.00440350
mov esi, eax
push 1
push 0x4a9fc4
lea ecx, [esp + 0x80]
mov byte [esp + 0x1d4], 0xa
call fcn.004035d0
mov ecx, eax
push ebx
push esi
or eax, 0xffffffff
mov esi, ecx
call fcn.004036a0
lea ecx, [esp + 0x40]
mov byte [esp + 0x1cc], 9
call fcn.00401620
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x80]
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa0], vtable.CAUVersion.0
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], bx
call fcn.00401b70
lea edx, [edi + 0x40]
push edx
lea esi, [esp + 0xbc]
mov byte [esp + 0x1d0], 0xb
call fcn.00442d20
mov byte [esp + 0x1cc], 0xc
cmp dword [esp + 0xd0], ebx
je 0x40faef
mov edx, str.LessOrEqual
lea eax, [esp + 0x40]
call fcn.004015e0
lea eax, [esp + 0x98]
push eax
lea ebx, [esp + 0x44]
mov edi, esi
mov byte [esp + 0x1d0], 0xd
call fcn.00442c40
add esp, 4
test al, al
lea ecx, [esp + 0x40]
sete bl
mov byte [esp + 0x1cc], 0xc
call fcn.00401620
test bl, bl
je 0x40fae9
mov ecx, esi
call fcn.00455860
lea ecx, [esp + 0x98]
call fcn.00455860
lea ecx, [esp + 0x78]
call fcn.00401620
jmp 0x40f8c1
mov edi, dword [esp + 0x20]
xor ebx, ebx
lea ecx, [edi + 0x60]
push ecx
lea esi, [esp + 0x114]
call fcn.00442d20
mov byte [esp + 0x1cc], 0xe
cmp dword [esp + 0x128], ebx
je 0x40fb95
mov edx, str.LessOrEqual
lea eax, [esp + 0x40]
call fcn.004015e0
mov edx, esi
push edx
lea ebx, [esp + 0x44]
lea edi, [esp + 0x9c]
mov byte [esp + 0x1d0], 0xf
call fcn.00442c40
add esp, 4
test al, al
lea ecx, [esp + 0x40]
sete bl
call fcn.00401620
test bl, bl
je 0x40fb8f
mov ecx, esi
call fcn.00455860
lea ecx, [esp + 0xb8]
call fcn.00455860
mov ecx, edi
call fcn.00455860
lea ecx, [esp + 0x78]
call fcn.00401620
mov byte [esp + 0x1cc], 2
mov eax, dword [ebp]
mov edx, dword [eax]
push 1
mov ecx, ebp
call edx
xor ebx, ebx
jmp 0x40ffc8
mov edi, dword [esp + 0x20]
xor ebx, ebx
lea ecx, [esp + 0x110]
call fcn.00455860
lea ecx, [esp + 0xb8]
call fcn.00455860
lea ecx, [esp + 0x98]
call fcn.00455860
lea ecx, [esp + 0x78]
mov byte [esp + 0x1cc], 3
call fcn.00401620
cmp dword [edi + 0xb4], ebx
je 0x40fbe3
lea ebx, [edi + 0xa0]
call fcn.00410df0
test al, al
jne 0x40fb75
xor ebx, ebx
lea esi, [edi + 0x80]
mov eax, esi
mov dword [esp + 0x2c], ebx
call fcn.004476d0
test eax, eax
jbe 0x40fda4
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x40fc11
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x2c], eax
jb 0x40fc16
call fcn.00478a25
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edi, dword [eax + ecx*4]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov esi, dword [esp + 0x5c]
lea ecx, [edi + 0x40]
mov byte [esp + 0x1cc], 0x10
call fcn.004418f0
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x6c], ebp
je 0x40fe0b
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40fc56
add eax, 0x3c
jmp 0x40fc59
lea eax, [ebp + 0x28]
push eax
lea esi, [esp + 0x9c]
call fcn.00442d20
push edi
lea esi, [esp + 0xbc]
mov byte [esp + 0x1d0], 0x11
call fcn.00442d20
mov byte [esp + 0x1cc], 0x12
cmp dword [esp + 0xd0], ebx
je 0x40fcdc
mov edx, str.LessOrEqual
lea eax, [esp + 0x40]
call fcn.004015e0
lea edx, [esp + 0x98]
push edx
lea ebx, [esp + 0x44]
mov edi, esi
mov byte [esp + 0x1d0], 0x13
call fcn.00442c40
add esp, 4
test al, al
lea ecx, [esp + 0x40]
sete bl
mov byte [esp + 0x1cc], 0x12
call fcn.00401620
test bl, bl
jne 0x40fdde
mov edi, dword [esp + 0x70]
xor ebx, ebx
add edi, 0x20
push edi
lea esi, [esp + 0x114]
call fcn.00442d20
mov byte [esp + 0x1cc], 0x14
cmp dword [esp + 0x128], ebx
je 0x40fd41
mov edx, str.LessOrEqual
lea eax, [esp + 0x40]
call fcn.004015e0
mov eax, esi
push eax
lea ebx, [esp + 0x44]
lea edi, [esp + 0x9c]
mov byte [esp + 0x1d0], 0x15
call fcn.00442c40
add esp, 4
test al, al
lea ecx, [esp + 0x40]
sete bl
call fcn.00401620
test bl, bl
jne 0x40fdd2
xor ebx, ebx
lea ecx, [esp + 0x110]
call fcn.00455860
lea ecx, [esp + 0xb8]
call fcn.00455860
lea ecx, [esp + 0x98]
call fcn.00455860
mov byte [esp + 0x1cc], 3
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
add esi, 0x80
add edi, 1
mov eax, esi
mov dword [esp + 0x2c], edi
call fcn.004476d0
cmp edi, eax
jb 0x40fbfc
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 8]
cmp eax, ebx
lea ebx, [eax + 0xe4]
jne 0x40fdb4
lea ebx, [ebp + 0x6c]
push edi
call fcn.00442a50
test al, al
je 0x40f8c1
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40fe1e
add eax, 0x13c
jmp 0x40fe24
lea ecx, [esp + 0x110]
call fcn.00455860
lea ecx, [esp + 0xb8]
call fcn.00455860
lea ecx, [esp + 0x98]
call fcn.00455860
mov byte [esp + 0x1cc], 3
mov edx, dword [ebp]
mov eax, dword [edx]
push 1
mov ecx, ebp
call eax
xor ebx, ebx
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x1cc], 2
mov edx, dword [ecx]
jmp 0x40ffc2
lea eax, [ebp + 0x8c]
push 0xffffffffffffffff
mov edi, 7
push ebx
add eax, 0x20
lea ecx, [esp + 0xfc]
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], bx
call fcn.00401b70
mov byte [esp + 0x1cc], 0x16
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x40fe70
mov eax, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x1c], eax
jb 0x40fe79
call fcn.00478a25
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx + eax*4]
lea edx, [esp + 0xf4]
push edx
call fcn.004439e0
mov esi, eax
cmp esi, ebx
je 0x40ff85
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x54]
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
call fcn.00401b70
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1d4], 0x17
call fcn.0043fde0
add esp, 8
push eax
lea eax, [esi + 0x38]
push eax
lea ecx, [esi + 0x1c]
push ecx
push esi
lea edx, [esp + 0x15c]
push edx
mov byte [esp + 0x1e0], 0x18
call fcn.0043c0d0
mov byte [esp + 0x1cc], 0x1a
cmp dword [esp + 0x58], 8
jb 0x40ff14
mov eax, dword [esp + 0x44]
push eax
call fcn.0045a870
add esp, 4
mov esi, dword [esp + 0x64]
lea ecx, [esp + 0x14c]
push ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00410ec0
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x40ff49
mov eax, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x1c], eax
jb 0x40ff52
call fcn.00478a25
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx + edx*4]
cmp dword [ecx], 1
jne 0x40ff62
mov byte [esp + 0x1b], bl
lea esi, [esp + 0x14c]
call fcn.0043c190
cmp dword [esp + 0x90], 8
jb 0x40ff85
mov eax, dword [esp + 0x7c]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x10c], 8
jb 0x40ff9f
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.0045a870
add esp, 4
mov dword [esp + 0x10c], edi
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], bx
mov byte [esp + 0x1cc], 2
mov edx, dword [ebp]
mov ecx, ebp
mov eax, dword [edx]
push 1
call eax
mov esi, dword [esp + 0x1c]
add esi, 1
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], esi
call fcn.004476d0
cmp esi, eax
jb 0x40f774
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
mov dword [ecx], 3
mov byte [esp + 0x1d0], 1
call fcn.00443a80
jmp 0x41002a
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
mov dword [edx], 1
mov byte [esp + 0x1d0], 1
call fcn.00443a80
jmp 0x41002a
mov ecx, dword [esp + 0x24]
mov dword [ecx], 1
mov eax, dword [esp + 0xdc]
mov esi, 8
cmp dword [esp + 0xf0], esi
jae 0x410046
lea eax, [esp + 0xdc]
push eax
call fcn.00478f9d
add esp, 4
cmp dword [esp + 0x148], esi
jb 0x410075
mov edx, dword [esp + 0x134]
push edx
call fcn.0045a870
add esp, 4
jmp 0x410075
mov eax, dword [esp + 0x24]
mov dword [eax], esi
mov esi, 8
cmp dword [esp + 0xf0], esi
jb 0x41008e
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.0045a870
add esp, 4
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.00478599
add esp, 0x1bc
ret