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

Disassembly:
mov ecx, dword [0x85d3cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x84]
cmp eax, dword [ecx + 8]
jbe 0x610963
sub esp, 0x104
mov eax, dword [esp + 0x110]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x114]
mov dword [esp + 0x60], edx
lea ebx, [0x687220]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044d740
mov eax, dword [esp + 0x80]
mov ecx, eax
mov edx, dword [esp + 0xc]
mov dword [esp + 0x98], edx
xor ebx, ebx
jmp 0x6100cb
mov esi, dword [esp + 0x94]
add esi, 0xc
lea ebx, [eax + 1]
mov ecx, dword [esp + 0x80]
mov edx, ebp
mov eax, esi
mov ebp, dword [esp + 0x5c]
cmp ebx, ebp
jge 0x6102ff
mov dword [esp + 0x54], ebx
mov dword [esp + 0x94], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.005cd6e0
mov eax, dword [0x85d680]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x61011d
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x98]
jmp 0x610136
call fcn.00468040
mov dword [edi], ecx
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x98]
mov esi, dword [ebp + eax*4]
mov dword [edi + 4], esi
mov dword [ebp + eax*4], ecx
test edx, edx
jne 0x610244
cmp dword [ecx + 0x4c], 1
jne 0x6100b3
mov edx, dword [ecx + 0x50]
lea ebx, [0x66de80]
cmp edx, ebx
jne 0x61094c
mov eax, dword [ecx + 0x54]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00581ac0
mov eax, dword [esp + 0xc]
mov dword [esp], eax
call fcn.005f1760
movzx eax, byte [esp + 8]
test al, al
je 0x6101a0
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x98]
jmp 0x6100b3
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x108]
mov dword [esp], ecx
mov byte [esp + 4], 0x2a
call fcn.005e74d0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004099a0
mov eax, dword [esp + 4]
lea ecx, [0x661e60]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
lea eax, [0x6a449b]
mov dword [esp], eax
mov dword [esp + 4], 0x43
lea eax, [esp + 0xa0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c0e90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], ecx
add esp, 0x104
ret
mov dword [esp + 0x58], edx
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x108]
mov dword [esp], eax
mov byte [esp + 4], 0x2a
call fcn.005e74d0
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x7c]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], 0
lea edx, [0x69ea11]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x29
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.00451270
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], ecx
lea edx, [0x66a620]
mov dword [esp], edx
call fcn.0040c260
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [0x85d680]
test ecx, ecx
jne 0x6102d7
mov ecx, dword [esp + 0x70]
jmp 0x6102e2
call fcn.00468030
mov ecx, dword [esp + 0x70]
mov dword [edi], ecx
mov dword [eax], ecx
lea ecx, [0x6f1b20]
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], eax
add esp, 0x104
ret
test ebp, ebp
jne 0x610325
mov eax, dword [esp + 0x108]
mov ebx, dword [eax + 0x2c]
mov ebx, dword [ebx + 0x48]
cmp ebx, 2
je 0x61031a
cmp ebx, 4
jne 0x610321
mov ebx, 1
jmp 0x61032e
xor ebx, ebx
jmp 0x61032e
mov eax, dword [esp + 0x108]
xor ebx, ebx
test bl, bl
jne 0x61048e
mov ebx, dword [eax + 0x2c]
cmp dword [ebx + 0x48], 3
jl 0x6104ee
test ebp, ebp
je 0x6104ee
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x610358
lea ebx, [0x6a67a8]
lea eax, [ebp - 1]
mov dword [esp + 0x68], eax
neg eax
sar eax, 0x1f
and eax, 4
mov dword [esp + 0x64], eax
mov esi, dword [ebx]
mov edx, ebx
call esi
lea edi, [esp + 0xbc]
lea esi, [esp]
call fcn.0046875e
lea edi, [esp + 0xa8]
lea esi, [esp + 0xbc]
call fcn.0046875e
call fcn.0040ccc0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x98]
add eax, ecx
mov dword [esp + 0x90], eax
mov ebx, dword [esp]
mov dword [esp + 0x8c], ebx
call fcn.0040ccc0
mov eax, dword [esp]
mov dword [esp + 0x88], eax
lea ecx, [0x6790e0]
mov dword [esp], ecx
call fcn.0040c260
mov eax, dword [0x85d680]
mov ecx, dword [esp + 4]
test eax, eax
jne 0x6103f1
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
jmp 0x610409
call fcn.00468040
mov edx, dword [esp + 0x8c]
mov dword [edi], edx
mov ebx, dword [esp + 0x88]
mov dword [edi + 4], ebx
mov dword [esp + 0x6c], ecx
mov dword [ecx], edx
mov dword [ecx + 0x10], ebx
lea edi, [esp + 0xd0]
xor eax, eax
call fcn.00468273
mov ecx, dword [esp + 0x108]
mov edx, dword [ecx + 0x2c]
mov edx, dword [edx + 0x4c]
mov dword [esp + 0xdc], edx
lea edi, [esp + 0xe0]
lea esi, [esp + 0xa8]
call fcn.0046875e
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xd8], ecx
lea ecx, [0x65f6c0]
mov dword [esp], ecx
call fcn.0040c260
mov ecx, dword [esp + 4]
mov dword [ecx], 2
mov dword [esp + 0xf4], ecx
mov dword [esp + 0xf8], 1
mov dword [esp + 0xfc], 1
xor eax, eax
jmp 0x610730
cmp word [eax + 0x28], 0x304
jne 0x6104a5
mov dword [esp], eax
mov byte [esp + 4], 0x74
call fcn.005e74d0
jmp 0x6104b2
mov dword [esp], eax
mov byte [esp + 4], 0x2a
call fcn.005e74d0
lea eax, [0x66a620]
mov dword [esp], eax
call fcn.0040c260
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x28
lea ecx, [0x69e328]
mov dword [eax], ecx
lea ecx, [0x6f1b20]
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], eax
add esp, 0x104
ret
mov dword [eax + 0x54], ebp
mov dword [eax + 0x58], ebp
mov ebx, dword [0x85d680]
test ebx, ebx
je 0x61050b
call fcn.00468040
mov dword [edi], edx
mov ebx, dword [eax + 0x50]
mov dword [edi + 4], ebx
mov dword [eax + 0x50], edx
mov ebx, dword [esp + 0x130]
mov esi, dword [esp + 0x134]
mov edi, dword [esp + 0x12c]
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], esi
mov ebx, dword [0x85d680]
test ebx, ebx
je 0x610544
mov ebx, edi
call fcn.00468040
mov dword [edi], ebx
mov esi, dword [eax + 0x38]
mov dword [edi + 4], esi
mov edi, ebx
mov dword [eax + 0x38], edi
mov ebx, dword [esp + 0x13c]
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x138]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], esi
mov ebx, dword [0x85d680]
test ebx, ebx
jne 0x610570
test ebp, ebp
jmp 0x610583
mov ebx, edi
call fcn.00468040
mov dword [edi], ebx
mov esi, dword [eax + 0x44]
mov dword [edi + 4], esi
test ebp, ebp
mov edi, ebx
mov dword [eax + 0x44], edi
je 0x61066c
mov ebx, dword [edx]
mov ebx, dword [ebx + 0x50]
test ebx, ebx
je 0x6105de
mov esi, dword [ebx + 8]
cmp esi, 0x4bcec15d
jne 0x6105b0
lea esi, [0x66de80]
cmp ebx, esi
je 0x61066c
jmp 0x6105de
cmp esi, 0x8c7bd38d
jne 0x6105c8
lea esi, [0x6824e0]
cmp ebx, esi
je 0x61066c
jmp 0x6105de
cmp esi, 0xc0d9e4a4
jne 0x6105de
lea esi, [0x667e00]
cmp ebx, esi
je 0x61066c
mov dword [esp], eax
mov byte [esp + 4], 0x2b
call fcn.005e74d0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov eax, dword [esp + 0x98]
mov eax, dword [eax]
mov ecx, dword [eax + 0x50]
mov eax, dword [eax + 0x54]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
lea eax, [0x6a4744]
mov dword [esp], eax
mov dword [esp + 4], 0x45
lea eax, [esp + 0xa0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c0e90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], ecx
add esp, 0x104
ret
mov ebx, dword [eax + 0x2c]
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x6106a6
mov ebx, dword [edx]
mov esi, dword [eax + 0x68]
mov edi, dword [eax + 0x6c]
mov eax, dword [eax + 0x70]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x6106c3
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0
add esp, 0x104
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x108]
mov dword [esp], edx
mov byte [esp + 4], 0x2a
call fcn.005e74d0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14c], eax
add esp, 0x104
ret
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + eax*4]
mov ebx, dword [esp + 0xd8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.005c5850
mov eax, dword [esp + 0x64]
inc eax
mov ecx, dword [esp + 0x68]
cmp eax, ecx
jl 0x61070a
mov eax, dword [esp + 0x98]
mov ecx, dword [eax]
mov dword [esp], ecx
lea edi, [esp + 4]
lea esi, [esp + 0xd0]
call fcn.0046870e
call fcn.005d4680
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x6107ad
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x108]
mov dword [ebp + 0x6c], ecx
mov dword [ebp + 0x70], eax
mov eax, dword [0x85d680]
test eax, eax
je 0x610791
call fcn.00468040
mov dword [edi], ebx
mov eax, dword [ebp + 0x68]
mov dword [edi + 4], eax
mov dword [ebp + 0x68], ebx
mov eax, ebp
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x98]
mov ebp, dword [esp + 0x5c]
jmp 0x6104ee
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x78], ecx
lea edx, [0x67ada0]
mov dword [esp], edx
call fcn.0040c260
mov eax, dword [esp + 4]
mov dword [esp + 0x9c], eax
mov dword [eax + 0xc], 0
mov dword [eax], 0
mov dword [eax + 8], 0
lea ecx, [0x67ae20]
mov dword [esp], ecx
call fcn.0040c260
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], edx
lea ebx, [0x666a20]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
call fcn.0046feb0
movzx eax, byte [esp + 0x10]
test al, al
je 0x61085e
mov eax, dword [esp + 0x108]
mov dword [esp], eax
mov byte [esp + 4], 0x30
call fcn.005e74d0
jmp 0x6108ca
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
lea edx, [0x666960]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0xc], edx
call fcn.0046feb0
movzx eax, byte [esp + 0x10]
test al, al
je 0x6108b6
mov eax, dword [esp + 0x9c]
cmp dword [eax + 4], 1
jne 0x6108b6
mov eax, dword [esp + 0x108]
mov dword [esp], eax
mov byte [esp + 4], 0x2d
call fcn.005e74d0
jmp 0x6108ca
mov eax, dword [esp + 0x108]
mov dword [esp], eax
mov byte [esp + 4], 0x2a
call fcn.005e74d0
lea eax, [0x6700a0]
mov dword [esp], eax
call fcn.0040c260
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [0x85d680]
test ecx, ecx
jne 0x6108f9
mov ecx, dword [esp + 0x98]
jmp 0x610907
call fcn.00468030
mov ecx, dword [esp + 0x98]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x85d680]
test ecx, ecx
jne 0x610923
mov ecx, dword [esp + 0x78]
jmp 0x61092e
call fcn.00468030
mov ecx, dword [esp + 0x78]
mov dword [edi], ecx
mov dword [eax + 0x10], ecx
lea ecx, [0x6f1e2c]
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], eax
add esp, 0x104
ret
mov dword [esp], edx
mov dword [esp + 4], ebx
lea eax, [0x662ca0]
mov dword [esp + 8], eax
call fcn.00409740
nop
call fcn.00466c30
jmp fcn.00610040