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

Disassembly:
mov ecx, dword [0x4e99a4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xe0]
cmp eax, dword [ecx + 8]
jbe 0x411c27
sub esp, 0x160
nop
lea eax, [0x4e98ec]
mov dword [esp], eax
mov dword [esp + 4], 2
call fcn.00402340
mov eax, dword [0x4e98ec]
cmp eax, 1
jne 0x41106a
mov eax, 1
jmp 0x411070
cmp eax, 2
sete al
mov byte [0x4e9a84], al
mov byte [0x4e9a80], al
lea eax, [0x4ea108]
mov dword [esp], eax
call fcn.00402360
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x4c4f14], eax
mov dword [0x4c4f10], ecx
nop
call fcn.0044dde0
mov eax, dword [0x4e99a4]
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 [0x4e9a80]
test ecx, ecx
je 0x4110e3
mov ecx, dword [eax + 0x74]
call fcn.0044d0e0
mov dword [edi], ecx
mov dword [esp + 0x154], eax
lea ecx, [0x469c69]
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.0042fa10
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
lea eax, [0x411c40]
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.0044bc00
lea eax, [0x46f294]
mov dword [esp], eax
call fcn.0044bc00
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.0042fa10
movzx eax, byte [0x4cdf44]
test al, al
je 0x4111e4
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.00444020
mov eax, dword [esp + 0x154]
mov dword [eax + 0x78], 0
mov ecx, dword [0x4e9a80]
test ecx, ecx
je 0x411206
mov ecx, dword [eax + 0x74]
call fcn.0044d0e0
mov dword [edi], ecx
mov dword [eax + 0x74], 0
mov ecx, dword [0x4e98ec]
test ecx, ecx
jne 0x411c10
lea eax, [0x4ea1b0]
mov dword [esp], eax
call fcn.00402360
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x4ef06c], eax
mov dword [0x4ef068], ecx
lea eax, [0x46f280]
mov dword [esp], eax
call fcn.0044bc00
nop
call fcn.0044dde0
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.0044de50
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 [0x4c4ef8]
mov esi, dword [0x4c4efc]
mov dword [esp + 0x84], esi
mov edi, dword [0x4c4f00]
mov esi, dword [0x4c4f04]
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 [0x4c4ef8], ebp
mov eax, dword [esp + 0x84]
adc edi, eax
mov dword [0x4c4efc], edi
mov eax, dword [esp + 0x4c]
mov dword [0x4c4ef4], eax
mov dword [0x4c4ef0], ecx
mov ebp, dword [0x4c4f00]
mov esi, dword [0x4c4f04]
lea edi, [0x4ef078]
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.00405260
lea eax, [0x4ee040]
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.00402380
lea eax, [0x4ef060]
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.00402380
mov eax, dword [0x4ef050]
and eax, 0xff
lea ecx, [0x4ee050]
lea edx, [ecx + eax*8]
lea eax, [ecx + eax*8 + 4]
mov ecx, dword [0x4c4ef8]
mov ebx, dword [0x4c4efc]
mov dword [edx], ecx
mov dword [eax], ebx
mov eax, dword [0x4ef050]
and eax, 0xff
lea ecx, [0x4ee850]
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 [0x4ee048]
mov ecx, dword [0x4ee04c]
mov edx, dword [0x4c4ef8]
mov ebx, dword [0x4c4efc]
add eax, edx
mov dword [0x4ee048], eax
adc ecx, ebx
mov dword [0x4ee04c], ecx
mov eax, dword [0x4c4ed0]
mov ecx, eax
sar ecx, 0x1f
mov edx, dword [0x4c4ef0]
mov ebx, dword [0x4c4ef4]
mov ebp, dword [0x4c4ee8]
mov esi, dword [0x4c4eec]
mov edi, dword [0x4c4f38]
mov dword [esp + 0x80], edi
mov edi, dword [0x4c4f3c]
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 [0x4c4f38], edx
adc edi, ecx
mov dword [0x4c4f3c], edi
mov edx, dword [0x4c4f40]
mov ebx, dword [0x4c4f44]
add edx, eax
mov dword [0x4c4f40], edx
adc ebx, ecx
mov dword [0x4c4f44], ebx
lea edx, [0x4c4f20]
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.00426e50
mov eax, dword [0x4c4f40]
mov ecx, dword [0x4c4f44]
mov edx, dword [0x4c4f30]
mov ebx, dword [0x4c4f34]
sub eax, edx
sbb ecx, ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00448730
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x88], xmm0
mov eax, dword [0x4c4f70]
mov ecx, dword [0x4c4f74]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00448730
movsd xmm0, qword [esp + 0x88]
divsd xmm0, qword [esp + 8]
movsd qword [0x4ef058], xmm0
nop
lea eax, [0x4e9b50]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.004021c0
nop
lea eax, [0x4e9b58]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.004021c0
nop
lea eax, [0x4c59c0]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call fcn.004021c0
mov dword [0x4c4c0c], 0
mov dword [0x4c4c10], 0
movzx eax, byte [0x4c4eac]
test al, al
je 0x41155c
inc dword [0x4ef054]
nop
nop
lea eax, [0x4c4ec4]
mov dword [esp], eax
call fcn.00406340
inc dword [0x4ef050]
lea eax, [0x4c4ec8]
mov dword [esp], eax
call fcn.00434040
nop
nop
lea eax, [0x4c4ec4]
mov dword [esp], eax
call fcn.00406540
lea eax, [0x4c9900]
mov dword [esp], eax
call fcn.0041b2d0
lea eax, [0x4e9be0]
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.00412e30
nop
lea eax, [0x4e9904]
mov dword [esp], eax
call fcn.00424b00
lea eax, [0x4c4c14]
mov dword [esp], eax
call fcn.0041be00
movzx eax, byte [esp + 8]
test al, al
je 0x411bfa
mov byte [esp + 0x23], al
mov eax, dword [esp + 4]
mov dword [esp + 0x80], eax
lea ecx, [0x46f298]
mov dword [esp], ecx
call fcn.0044bc00
call fcn.00425090
call fcn.0041dff0
lea eax, [0x46f274]
mov dword [esp], eax
call fcn.0044bc00
lea eax, [0x46f29c]
mov dword [esp], eax
call fcn.0044bc00
lea eax, [0x4c4c14]
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.0041be80
mov eax, dword [0x4e9cc0]
test eax, eax
jle 0x411aa7
lea edi, [esp + 0x9c]
xor eax, eax
call fcn.0044d28a
call fcn.0042d920
mov ecx, dword [0x4c4ed8]
mov edx, dword [0x4c4edc]
mov ebx, dword [0x4e99e8]
mov ebp, dword [0x4e99ec]
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.00448970
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, 0x17
jmp 0x4116ba
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 0x4116e3
cmp eax, 0x14
jl 0x41178d
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 0x411bf0
mov byte [esp + eax + 0x9c], dl
lea edx, [eax - 1]
cmp eax, 0x15
jne 0x411786
mov byte [esp + eax + 0x9b], 0x2e
add esi, edi
mov edx, 0x13
jmp 0x4116b3
add esi, edi
jmp 0x4116b3
add ecx, 0x30
cmp eax, 0x18
jae 0x411be6
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.0043f830
mov eax, dword [0x4c4ed8]
mov ecx, dword [0x4c4edc]
mov dword [esp + 0x64], ecx
lea edi, [esp + 0xb4]
mov edx, eax
xor eax, eax
call fcn.0044d28a
mov ecx, dword [0x4c4ee0]
mov ebx, dword [0x4c4ee4]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], ebx
mov ecx, dword [0x4c4ee8]
mov ebx, dword [0x4c4eec]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ebx
mov ecx, dword [0x4c4ef0]
mov ebx, dword [0x4c4ef4]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], ebx
xor ecx, ecx
mov ebx, dword [esp + 0x64]
jmp 0x4118b3
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.00412920
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.0043f830
xor eax, eax
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
cmp ecx, 3
jl 0x411842
nop
lea eax, [0x4ea160]
mov dword [esp], eax
call fcn.00402200
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x30], ecx
lea edx, [0x4ea168]
mov dword [esp], edx
call fcn.00402200
mov eax, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
lea edx, [0x4ea170]
mov dword [esp], edx
call fcn.00402200
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
nop
lea edx, [0x4ea178]
mov dword [esp], edx
call fcn.00402200
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.0044d286
mov eax, dword [0x4c4ed0]
mov ecx, eax
sar ecx, 0x1f
mov ebx, dword [0x4c4ee0]
mov ebp, dword [0x4c4ee4]
mov esi, dword [0x4c4ed8]
mov edi, dword [0x4c4edc]
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 0x411a44
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.00412920
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.0043f830
mov eax, dword [esp + 0x70]
inc eax
cmp eax, 5
jge 0x411a55
cmp eax, 2
je 0x4119e9
cmp eax, 3
je 0x4119e9
jmp 0x4119e9
nop
lea eax, [0x4ea120]
mov dword [esp], eax
call fcn.00402360
nop
lea eax, [0x4ea130]
mov dword [esp], eax
call fcn.00402360
mov eax, dword [0x4e99a4]
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 0x411aa7
nop
nop
lea eax, [0x4e9948]
mov dword [esp], eax
call fcn.00406540
nop
nop
lea eax, [0x4c4be0]
mov dword [esp], eax
call fcn.00406340
mov eax, dword [0x4c4bf4]
mov dword [esp + 0x74], eax
mov ecx, dword [0x4c4bf0]
mov dword [esp + 0x158], ecx
mov dword [0x4c4bf4], 0
mov dword [0x4c4bf8], 0
mov edx, dword [0x4e9a80]
test edx, edx
je 0x411af9
mov edx, dword [0x4c4bf0]
call fcn.0044d0e0
mov dword [edi], edx
mov dword [0x4c4bf0], 0
nop
nop
lea eax, [0x4c4be0]
mov dword [esp], eax
call fcn.00406540
xor eax, eax
jmp 0x411b34
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.00402b80
mov eax, dword [esp + 0x78]
inc eax
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jl 0x411b17
lea eax, [0x4ea0a0]
mov dword [esp], eax
call fcn.004185c0
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 0x411b77
lea eax, [0x4c98a0]
mov dword [esp], eax
call fcn.00407500
nop
lea eax, [0x4c1120]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043b190
nop
lea eax, [0x4c1124]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043b190
mov eax, dword [esp + 0x154]
mov ecx, dword [eax + 0x7c]
lea edx, [ecx - 1]
nop
mov ebx, dword [0x4e99a4]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
mov dword [eax + 0x7c], edx
cmp ecx, 1
jne 0x411bdf
movzx eax, byte [ebx + 0x65]
test al, al
je 0x411bdf
mov dword [ebx + 8], 0xfffffade
add esp, 0x160
ret
mov ecx, 0x18
call fcn.0044d140
mov ecx, 0x18
call fcn.0044d140
lea eax, [0x46c2f1]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.0042c470
lea eax, [0x46c824]
mov dword [esp], eax
mov dword [esp + 4], 0x1d
call fcn.0042c470
nop
call fcn.0044bcf0
jmp fcn.00411020