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

Disassembly:
mov ecx, dword [0x85d738]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xe0]
cmp eax, dword [ecx + 8]
jbe 0x415517
sub esp, 0x160
nop
lea eax, [0x85d674]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00402fa0
mov eax, dword [0x85d674]
cmp eax, 1
jne 0x41495a
mov eax, 1
jmp 0x414960
cmp eax, 2
sete al
mov byte [0x85d834], al
mov byte [0x85d830], al
lea eax, [0x85dec8]
mov dword [esp], eax
call fcn.00402fd0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x838694], eax
mov dword [0x838690], ecx
nop
call fcn.00453800
mov eax, dword [0x85d738]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
mov edx, dword [esp + 4]
mov dword [esp + 0x50], edx
mov ebx, dword [esp]
mov dword [esp + 0x38], ebx
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [eax + 0x78], 5
mov ecx, dword [0x85d830]
test ecx, ecx
je 0x4149d3
mov ecx, dword [eax + 0x74]
call fcn.00452b00
mov dword [edi], ecx
mov dword [esp + 0x154], eax
lea ecx, [0x7bdfe2]
mov dword [eax + 0x74], ecx
mov byte [eax + 0x9d], 2
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x15c], ecx
nop
mov byte [ecx + 0x64], 6
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [esp + 8], 4
call fcn.00433990
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
lea eax, [0x415530]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x90]
mov dword [esp], eax
call fcn.004515f0
lea eax, [0x7c6378]
mov dword [esp], eax
call fcn.004515f0
mov eax, dword [esp + 0x154]
mov byte [eax + 0x9d], 0
mov ecx, dword [esp + 0x15c]
mov dword [esp], ecx
mov dword [esp + 4], 4
mov dword [esp + 8], 2
call fcn.00433990
movzx eax, byte [0x841cc4]
test al, al
je 0x414ad4
nop
mov byte [esp], 8
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00449110
mov eax, dword [esp + 0x154]
mov dword [eax + 0x78], 0
mov ecx, dword [0x85d830]
test ecx, ecx
je 0x414af6
mov ecx, dword [eax + 0x74]
call fcn.00452b00
mov dword [edi], ecx
mov dword [eax + 0x74], 0
mov ecx, dword [0x85d674]
test ecx, ecx
jne 0x415500
lea eax, [0x85df70]
mov dword [esp], eax
call fcn.00402fd0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x862e2c], eax
mov dword [0x862e28], ecx
lea eax, [0x7c6364]
mov dword [esp], eax
call fcn.004515f0
nop
call fcn.00453800
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x3c], edx
call fcn.00453870
mov eax, dword [esp + 8]
mov ecx, dword [esp]
mov edx, eax
mov eax, ecx
mov ebx, 0x3b9aca00
mov ecx, edx
mul ebx
mov ebx, dword [esp + 4]
imul ebx, ebx, 0x3b9aca00
add edx, ebx
mov ebx, ecx
sar ecx, 0x1f
mov ebp, dword [0x838678]
mov esi, dword [0x83867c]
mov dword [esp + 0x84], esi
mov edi, dword [0x838680]
mov esi, dword [0x838684]
add ebx, eax
mov dword [esp + 0x58], ebx
adc edx, ecx
mov dword [esp + 0x5c], edx
mov eax, dword [esp + 0x34]
mov ecx, eax
sub eax, edi
mov edi, dword [esp + 0x3c]
sbb edi, esi
add ebp, eax
mov dword [0x838678], ebp
mov eax, dword [esp + 0x84]
adc edi, eax
mov dword [0x83867c], edi
mov eax, dword [esp + 0x4c]
mov dword [0x838674], eax
mov dword [0x838670], ecx
mov ebp, dword [0x838680]
mov esi, dword [0x838684]
lea edi, [0x862e38]
mov dword [esp], edi
sub ecx, ebp
mov ebp, dword [esp + 0x3c]
sbb ebp, esi
mov dword [esp + 8], ebp
mov dword [esp + 4], ecx
call fcn.00408400
lea eax, [0x861e00]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
call fcn.00402ff0
lea eax, [0x862e20]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00402ff0
mov eax, dword [0x862e10]
and eax, 0xff
lea ecx, [0x861e10]
lea edx, [ecx + eax*8]
lea eax, [ecx + eax*8 + 4]
mov ecx, dword [0x838678]
mov ebx, dword [0x83867c]
mov dword [edx], ecx
mov dword [eax], ebx
mov eax, dword [0x862e10]
and eax, 0xff
lea ecx, [0x862610]
lea edx, [ecx + eax*8]
mov ebx, dword [esp + 0x58]
mov dword [edx], ebx
lea eax, [ecx + eax*8 + 4]
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
mov eax, dword [0x861e08]
mov ecx, dword [0x861e0c]
mov edx, dword [0x838678]
mov ebx, dword [0x83867c]
add eax, edx
mov dword [0x861e08], eax
adc ecx, ebx
mov dword [0x861e0c], ecx
mov eax, dword [0x838650]
mov ecx, eax
sar ecx, 0x1f
mov edx, dword [0x838670]
mov ebx, dword [0x838674]
mov ebp, dword [0x838668]
mov esi, dword [0x83866c]
mov edi, dword [0x8386b8]
mov dword [esp + 0x80], edi
mov edi, dword [0x8386bc]
sub edx, ebp
sbb ebx, esi
mov ebp, edx
mov esi, eax
mul edx
mov dword [esp + 0x68], eax
imul ebx, esi
add edx, ebx
imul ecx, ebp
add ecx, edx
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x80]
add edx, eax
mov dword [0x8386b8], edx
adc edi, ecx
mov dword [0x8386bc], edi
mov edx, dword [0x8386c0]
mov ebx, dword [0x8386c4]
add edx, eax
mov dword [0x8386c0], edx
adc ebx, ecx
mov dword [0x8386c4], ebx
lea edx, [0x8386a0]
mov dword [esp], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], ebx
mov byte [esp + 0xc], 1
call fcn.0042a7d0
mov eax, dword [0x8386c0]
mov ecx, dword [0x8386c4]
mov edx, dword [0x8386b0]
mov ebx, dword [0x8386b4]
sub eax, edx
sbb ecx, ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0044da50
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x88], xmm0
mov eax, dword [0x8386f0]
mov ecx, dword [0x8386f4]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0044da50
movsd xmm0, qword [esp + 0x88]
divsd xmm0, qword [esp + 8]
movsd qword [0x862e18], xmm0
nop
lea eax, [0x85d910]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.00402e10
nop
lea eax, [0x85d918]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.00402e10
nop
lea eax, [0x838f20]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.00402e10
mov dword [0x83834c], 0
mov dword [0x838350], 0
movzx eax, byte [0x83862c]
test al, al
je 0x414e4c
inc dword [0x862e14]
nop
nop
lea eax, [0x838644]
mov dword [esp], eax
call fcn.00409840
inc dword [0x862e10]
lea eax, [0x838648]
mov dword [esp], eax
call fcn.00438280
nop
nop
lea eax, [0x838644]
mov dword [esp], eax
call fcn.00409a40
lea eax, [0x83d680]
mov dword [esp], eax
call fcn.0041ebc0
lea eax, [0x85d9a0]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call fcn.00416720
nop
lea eax, [0x85d68c]
mov dword [esp], eax
call fcn.00428480
lea eax, [0x838354]
mov dword [esp], eax
call fcn.0041f6f0
movzx eax, byte [esp + 8]
test al, al
je 0x4154ea
mov byte [esp + 0x23], al
mov eax, dword [esp + 4]
mov dword [esp + 0x80], eax
lea ecx, [0x7c637c]
mov dword [esp], ecx
call fcn.004515f0
call fcn.00428a10
call fcn.004218e0
lea eax, [0x7c6358]
mov dword [esp], eax
call fcn.004515f0
lea eax, [0x7c6380]
mov dword [esp], eax
call fcn.004515f0
lea eax, [0x838354]
mov dword [esp], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
movzx eax, byte [esp + 0x23]
mov byte [esp + 8], al
call fcn.0041f770
mov eax, dword [0x85da80]
test eax, eax
jle 0x415397
lea edi, [esp + 0x9c]
xor eax, eax
call fcn.00452caa
call fcn.004316b0
mov ecx, dword [0x838658]
mov edx, dword [0x83865c]
mov ebx, dword [0x85d790]
mov ebp, dword [0x85d794]
sub ecx, ebx
sbb edx, ebp
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xf4240
call fcn.0044dc90
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, 0x17
jmp 0x414faa
adc ebx, 0
mov eax, edx
mov edx, ebx
test edx, edx
sete bl
xchg ebp, ebx
seta bl
xchg ebp, ebx
cmp ecx, 0xa
xchg esi, ebx
setae bl
xchg esi, ebx
and esi, ebx
or esi, ebp
xchg esi, eax
test al, al
xchg esi, eax
jne 0x414fd3
cmp eax, 0x14
jl 0x41507d
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], eax
mov eax, ecx
mov ebp, 0xcccccccd
mov esi, edx
mul ebp
mov eax, esi
mov edi, edx
mul ebp
shr edi, 3
lea eax, [edi + edi*4]
shr edx, 3
lea ebx, [edx + edx*4]
shl eax, 1
sub ecx, eax
shl ebx, 1
sub esi, ebx
mov eax, 0x19999999
mov ebx, edx
mul esi
mov dword [esp + 0x80], edx
lea esi, [esi + esi*2]
lea esi, [ecx + esi*2]
mov ecx, eax
mov eax, ebp
mul esi
shr edx, 3
add edi, 0
adc ebx, 0
add edi, ecx
mov esi, dword [esp + 0x80]
adc ebx, esi
mov esi, edx
add edx, edi
mov eax, 0xa
mov ecx, edx
mul edx
mov edx, dword [esp + 0x54]
sub edx, eax
add edx, 0x30
mov eax, dword [esp + 0x6c]
cmp eax, 0x18
jae 0x4154e0
mov byte [esp + eax + 0x9c], dl
lea edx, [eax - 1]
cmp eax, 0x15
jne 0x415076
mov byte [esp + eax + 0x9b], 0x2e
add esi, edi
mov edx, 0x13
jmp 0x414fa3
add esi, edi
jmp 0x414fa3
add ecx, 0x30
cmp eax, 0x18
jae 0x4154d6
mov byte [esp + eax + 0x9c], cl
lea ecx, [esp + 0x10c]
mov dword [esp], ecx
lea ecx, [eax - 0x18]
neg ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
lea eax, [esp + eax + 0x9c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00443c40
mov eax, dword [0x838658]
mov ecx, dword [0x83865c]
mov dword [esp + 0x64], ecx
lea edi, [esp + 0xb4]
mov edx, eax
xor eax, eax
call fcn.00452caa
mov ecx, dword [0x838660]
mov ebx, dword [0x838664]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ebx
mov ecx, dword [0x838668]
mov ebx, dword [0x83866c]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ebx
mov ecx, dword [0x838670]
mov ebx, dword [0x838674]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], ebx
xor ecx, ecx
mov ebx, dword [esp + 0x64]
jmp 0x4151a3
lea eax, [esp + ecx*8 + 0xb4]
mov ebp, dword [eax]
mov dword [esp + 0x60], ebp
mov eax, dword [eax + 4]
mov dword [esp + 0x64], eax
lea esi, [esp + 0x9c]
mov dword [esp], esi
mov dword [esp + 4], 0x18
mov dword [esp + 8], 0x18
inc ecx
mov dword [esp + 0x78], ecx
sub ebp, edx
sbb eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebp
call fcn.00416210
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xec]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00443c40
xor eax, eax
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
cmp ecx, 3
jl 0x415132
nop
lea eax, [0x85df20]
mov dword [esp], eax
call fcn.00402e50
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x30], ecx
lea edx, [0x85df28]
mov dword [esp], edx
call fcn.00402e50
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
lea edx, [0x85df30]
mov dword [esp], edx
call fcn.00402e50
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
nop
lea edx, [0x85df38]
mov dword [esp], edx
call fcn.00402e50
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x12c]
mov edx, eax
xor eax, eax
call fcn.00452ca6
mov eax, dword [0x838650]
mov ecx, eax
sar ecx, 0x1f
mov ebx, dword [0x838660]
mov ebp, dword [0x838664]
mov esi, dword [0x838658]
mov edi, dword [0x83865c]
sub ebx, esi
sbb ebp, edi
mov esi, edx
mov edi, eax
mul ebx
mov dword [esp + 0x12c], eax
imul ecx, ebx
imul ebp, edi
lea eax, [ebp + edx]
add eax, ecx
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
adc eax, ecx
mov dword [esp + 0x140], eax
mov dword [esp + 0x148], esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x150], eax
xor eax, eax
jmp 0x415334
mov dword [esp + 0x70], eax
lea ecx, [esp + eax*8 + 0x12c]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
lea ebx, [esp + 0x9c]
mov dword [esp], ebx
mov dword [esp + 4], 0x18
mov dword [esp + 8], 0x18
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
call fcn.00416210
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xcc]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00443c40
mov eax, dword [esp + 0x70]
inc eax
cmp eax, 5
jge 0x415345
cmp eax, 2
je 0x4152d9
cmp eax, 3
je 0x4152d9
jmp 0x4152d9
nop
lea eax, [0x85dee0]
mov dword [esp], eax
call fcn.00402fd0
nop
lea eax, [0x85def0]
mov dword [esp], eax
call fcn.00402fd0
mov eax, dword [0x85d738]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
movzx ecx, byte [eax + 0x8b]
lea edx, [ecx - 1]
nop
mov byte [eax + 0x8b], dl
cmp cl, 1
jne 0x415397
nop
nop
lea eax, [0x85d6d0]
mov dword [esp], eax
call fcn.00409a40
nop
nop
lea eax, [0x838320]
mov dword [esp], eax
call fcn.00409840
mov eax, dword [0x838334]
mov dword [esp + 0x74], eax
mov ecx, dword [0x838330]
mov dword [esp + 0x158], ecx
mov dword [0x838334], 0
mov dword [0x838338], 0
mov edx, dword [0x85d830]
test edx, edx
je 0x4153e9
mov edx, dword [0x838330]
call fcn.00452b00
mov dword [edi], edx
mov dword [0x838330], 0
nop
nop
lea eax, [0x838320]
mov dword [esp], eax
call fcn.00409a40
xor eax, eax
jmp 0x415424
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x158]
lea edx, [ecx + eax*8]
mov edx, dword [edx]
mov dword [esp], edx
call fcn.004045c0
mov eax, dword [esp + 0x78]
inc eax
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jl 0x415407
lea eax, [0x85de60]
mov dword [esp], eax
call fcn.0041beb0
mov eax, dword [esp + 8]
test eax, eax
sete al
seta cl
cmp dword [esp + 4], 0x40000000
seta dl
and eax, edx
or eax, ecx
test al, al
je 0x415467
lea eax, [0x83d620]
mov dword [esp], eax
call fcn.0040aa90
nop
lea eax, [0x491084]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043f560
nop
lea eax, [0x491088]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043f560
mov eax, dword [esp + 0x154]
mov ecx, dword [eax + 0x7c]
lea edx, [ecx - 1]
nop
mov ebx, dword [0x85d738]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
mov dword [eax + 0x7c], edx
cmp ecx, 1
jne 0x4154cf
movzx eax, byte [ebx + 0x65]
test al, al
je 0x4154cf
mov dword [ebx + 8], 0xfffffade
add esp, 0x160
ret
mov ecx, 0x18
call fcn.00452b60
mov ecx, 0x18
call fcn.00452b60
lea eax, [0x7c1d43]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.00430110
lea eax, [0x7c2454]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.00430110
nop
call fcn.004516e0
jmp fcn.00414910