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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4793a6
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x49c500]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x49c500]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x15a0]
lea esi, [eax + 0x159c]
xor edi, edi
cmp edx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], esi
jne 0x416cad
xor ebx, ebx
mov dword [esp + 0x3c], ebx
jmp 0x416cbb
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 6
mov dword [esp + 0x3c], ecx
mov ebx, ecx
mov edx, dword [eax + 0x15ac]
mov ecx, dword [eax + 0x1418]
push edi
push ebx
push 0x1d80
push edx
mov dword [esp + 0x50], ecx
call dword [0x47d4fc]
test ebx, ebx
jle 0x4173f7
mov dword [esp + 0x24], edi
jmp 0x416cf0
mov ebx, dword [esi + 4]
test ebx, ebx
mov dword [esp + 0x20], 0
je 0x4173b4
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
sar eax, 6
cmp eax, edi
jbe 0x4173b4
cmp ebx, ecx
jbe 0x416d1e
call fcn.00452777
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], ebx
add ebx, eax
cmp ebx, dword [esi + 8]
mov dword [esp + 0x58], ebx
ja 0x416d36
cmp ebx, dword [esi + 4]
jae 0x416d3b
call fcn.00452777
cmp ebx, dword [esi + 8]
jb 0x416d45
call fcn.00452777
cmp dword [ebx + 0x18], 0x10
mov esi, dword [ebx + 0x14]
lea eax, [ebx + 4]
mov dword [esp + 0x18], eax
jb 0x416d57
mov eax, dword [eax]
push esi
push eax
lea ecx, [esp + 0x1b4]
push ecx
call fcn.004591f0
fnstcw word [esp + 0x28]
add edi, 1
mov dword [esp + 0x58], edi
fild dword [esp + 0x58]
movzx eax, word [esp + 0x28]
mov ecx, dword [esp + 0x34]
fmul qword [0x48b328]
or eax, 0xc00
mov dword [esp + 0x38], eax
add esp, 0xc
fidiv dword [esp + 0x3c]
lea edx, [esp + 0x1ac]
push edx
mov edx, dword [ecx + 0x15ac]
mov byte [esp + esi + 0x1b0], 0
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov eax, dword [esp + 0x30]
push eax
push 0x1d80
fldcw word [esp + 0x28]
push edx
call dword [0x47d4fc]
push esi
lea eax, [esp + 0x1b0]
push eax
call dword [0x47d4f8]
test eax, eax
je 0x41739c
mov eax, dword [esp + 0x28]
add eax, 4
push eax
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x20], eax
call fcn.00402980
test eax, eax
mov dword [esp + 0x2c], eax
jl 0x416e53
mov ecx, dword [esp + 0x28]
add ecx, 0x1408
mov dword [esp + 0x38], ecx
call fcn.00402ed0
mov ecx, 0x3d
mov esi, eax
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0x1c]
cmp dword [esp + 0x160], edi
jl 0x416e39
mov ecx, dword [esp + 0x15c]
mov dword [ebx + 0x24], ecx
jmp 0x416e41
mov dword [esp + 0x20], 1
cmp dword [esp + 0x20], 0
mov dword [esp + 0x17c], 3
je 0x416e92
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
add eax, 0x1408
mov dword [ebx + 0x24], edx
mov edx, dword [eax + 4]
test edx, edx
mov dword [esp + 0x38], eax
jne 0x416e72
xor eax, eax
jmp 0x416e88
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x4325c53f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, dword [ebx + 0x1c]
add dword [esp + 0x40], edi
mov dword [ebx + 0x3c], eax
cmp dword [esp + 0x2c], 0
jge 0x41710e
push 0xf4
lea eax, [esp + 0x98]
push 0
push eax
call fcn.00455e50
mov edi, dword [esp + 0x28]
add esp, 0xc
mov esi, edi
call fcn.00402c10
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x417833
mov ecx, eax
push ecx
lea edx, [esp + 0x1b0]
push edx
lea esi, [esp + 0x9c]
mov eax, edi
call fcn.004025b0
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x168]
mov edx, dword [esp + 0x170]
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x2c]
push ecx
mov dword [ebx + 0x34], edx
push str._08X
lea edx, [esp + 0x194]
mov dword [ebx + 0x28], 0x80000000
mov dword [ebx + 0x38], eax
call fcn.00417860
add esp, 8
cmp dword [ebx + 0x18], 0x10
jb 0x416f37
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
jmp 0x416f3b
mov ecx, dword [esp + 0x18]
mov eax, 2
mov ebx, edi
call fcn.00402490
push eax
push str._08X
lea edx, [esp + 0x1a4]
call fcn.00417860
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0x1c]
add esp, 8
call fcn.00416a10
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x417833
cmp dword [esi + 0x18], 0x10
jb 0x416f84
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
jmp 0x416f88
mov ecx, dword [esp + 0x18]
mov eax, ecx
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x416fa3
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x80]
call fcn.004033a0
push 1
push 0x48462c
lea eax, [esp + 0x80]
mov dword [esp + 0x2d0], ebx
call fcn.00405bc0
lea eax, [esp + 0x18c]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x416fe0
sub eax, ecx
push eax
lea ecx, [esp + 0x190]
push ecx
lea eax, [esp + 0x80]
call fcn.00405bc0
push 1
push 0x48462c
lea eax, [esp + 0x80]
call fcn.00405bc0
lea eax, [esp + 0x19c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417020
sub eax, edx
push eax
lea edx, [esp + 0x1a0]
push edx
lea eax, [esp + 0x80]
call fcn.00405bc0
cmp dword [esp + 0x90], 0x10
mov al, byte [esp + 0x8c]
mov ecx, dword [esp + 0x7c]
mov byte [esp + 0x94], al
jae 0x417060
lea ecx, [esp + 0x7c]
movzx eax, al
push eax
push ecx
lea ecx, [esp + 0x9d]
push ecx
call fcn.004591f0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x1430]
lea eax, [eax + edx*4]
mov edx, dword [esi + 0x24]
mov dword [eax], edx
mov edx, dword [esi + 0x1c]
mov dword [eax + 4], edx
mov dword [eax + 8], 0x80000000
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
add esp, 0xc
cmp eax, ebx
jle 0x4170bc
mov ecx, dword [ecx + 0x158c]
push eax
mov eax, dword [esp + 0x24]
add ecx, edx
push ecx
push eax
call fcn.004591f0
add esp, 0xc
mov dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
mov eax, dword [esi + 0x24]
jle 0x4170e5
mov edi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push ecx
lea esi, [esp + 0x1c]
call fcn.00402c90
cmp eax, ebx
je 0x4173b9
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x94]
call fcn.00402f40
lea ecx, [esp + 0x78]
mov dword [esp + 0x2c8], 0xffffffff
call fcn.00402e20
jmp 0x41739c
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x94]
lea eax, [esp + 0x1ac]
call fcn.004026f0
push edi
push str._08X
lea edx, [esp + 0x194]
mov dword [esp + 0x168], edi
call fcn.00417860
add esp, 8
cmp dword [ebx + 0x18], 0x10
jb 0x41714f
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
jmp 0x417153
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, 2
call fcn.00402490
push eax
push str._08X
lea edx, [esp + 0x1a4]
call fcn.00417860
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0x1c]
mov edi, dword [0x49dfd4]
add esp, 8
cmp eax, edi
jge 0x417194
mov eax, dword [0x4a3d08]
xor ebx, ebx
cmp eax, ebx
jne 0x4171be
jmp 0x4171b0
mov edi, eax
mov eax, dword [0x4a3d08]
test eax, eax
mov dword [0x49dfd4], edi
je 0x4171ae
push eax
call fcn.004528f3
add esp, 4
xor ebx, ebx
push edi
call fcn.004529d0
add esp, 4
mov dword [0x4a3d08], eax
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x417833
cmp dword [esi + 0x18], 0x10
jb 0x4171d8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
jmp 0x4171dc
mov ecx, dword [esp + 0x18]
mov eax, ecx
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4171f1
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x64]
call fcn.004033a0
push 1
push 0x48462c
lea eax, [esp + 0x64]
mov dword [esp + 0x2d0], 1
call fcn.00405bc0
lea eax, [esp + 0x18c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417230
sub eax, edx
push eax
lea ecx, [esp + 0x190]
push ecx
lea eax, [esp + 0x64]
call fcn.00405bc0
push 1
push 0x48462c
lea eax, [esp + 0x64]
call fcn.00405bc0
lea eax, [esp + 0x19c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417267
sub eax, edx
push eax
lea edx, [esp + 0x1a0]
push edx
lea eax, [esp + 0x64]
call fcn.00405bc0
cmp dword [esp + 0x74], 0x10
mov al, byte [esp + 0x70]
mov ecx, dword [esp + 0x60]
mov byte [esp + 0x94], al
jae 0x41729e
lea ecx, [esp + 0x60]
movzx eax, al
push eax
push ecx
lea ecx, [esp + 0x9d]
push ecx
call fcn.004591f0
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x34]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x1430]
lea eax, [eax + edx*4]
mov edx, dword [esi + 0x24]
mov dword [eax], edx
mov edx, dword [esi + 0x1c]
mov dword [eax + 4], edx
mov dword [eax + 8], 0x80000000
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
add esp, 0xc
cmp eax, ebx
jle 0x4172fd
mov ecx, dword [ecx + 0x158c]
push eax
mov eax, dword [esp + 0x24]
add ecx, edx
push ecx
push eax
call fcn.004591f0
add esp, 0xc
mov dword [esp + 0x14], ebx
mov edi, dword [esi + 0x1c]
cmp edi, ebx
mov esi, dword [esi + 0x24]
jle 0x417350
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1554]
push ebx
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
call dword [0x47d334]
test eax, eax
je 0x4173d2
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + 0x1554]
push edi
push edx
push ecx
call dword [0x47d330]
test eax, eax
je 0x4173d2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
call fcn.00402ed0
mov ecx, 0x3d
lea esi, [esp + 0x94]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c8], 0xffffffff
cmp dword [esp + 0x74], 0x10
jb 0x41738c
mov edx, dword [esp + 0x60]
push edx
call fcn.00436400
add esp, 4
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov edi, dword [esp + 0x4c]
add dword [esp + 0x24], 0x40
cmp edi, dword [esp + 0x3c]
jge 0x4173f7
mov esi, dword [esp + 0x44]
jmp 0x416cf0
call fcn.00403320
lea ecx, [esp + 0x78]
mov dword [esp + 0x2c8], 0xffffffff
call fcn.00402e20
jmp 0x417833
mov dword [esp + 0x2c8], 0xffffffff
cmp dword [esp + 0x74], 0x10
jb 0x417833
mov eax, dword [esp + 0x60]
push eax
call fcn.00436400
jmp 0x417830
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x140c]
add esi, 0x1408
xor edi, edi
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x38], esi
jne 0x417419
xor eax, eax
jmp 0x41742f
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x4325c53f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edi
jle 0x417833
mov dword [esp + 0x2c], 0
jmp 0x417450
mov edi, dword [esi + 4]
test edi, edi
je 0x417508
mov ebx, dword [esi + 8]
mov ecx, ebx
sub ecx, edi
mov eax, 0x4325c53f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [esp + 0x24]
jbe 0x417508
cmp edi, ebx
jbe 0x417486
call fcn.00452777
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], edi
add edi, ecx
cmp edi, dword [esi + 8]
ja 0x41749a
cmp edi, dword [esi + 4]
jae 0x41749f
call fcn.00452777
cmp edi, dword [esi + 8]
jb 0x4174a9
call fcn.00452777
movzx edx, byte [edi]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x2c], 0xf4
lea ecx, [eax + edx + 1]
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jl 0x417450
test ecx, ecx
jle 0x417833
add ecx, 0xa
push ecx
call fcn.004529d0
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x417833
mov eax, dword [esi + 4]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x24], ecx
jne 0x41750d
mov dword [esp + 0x18], ecx
jmp 0x417527
call fcn.00403320
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x4325c53f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
xor ebx, ebx
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x4c], ebx
jle 0x417660
mov edi, dword [esi + 4]
test edi, edi
je 0x417508
mov ecx, dword [esi + 8]
sub ecx, edi
mov eax, 0x4325c53f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x417508
cmp edi, dword [esi + 8]
jbe 0x417562
call fcn.00452777
mov edx, ebx
imul edx, edx, 0xf4
mov dword [esp + 0x48], edi
add edi, edx
cmp edi, dword [esi + 8]
ja 0x41757a
cmp edi, dword [esi + 4]
jae 0x41757f
call fcn.00452777
mov eax, esi
cmp edi, dword [eax + 8]
jb 0x41758b
call fcn.00452777
test ebx, ebx
je 0x41761c
cmp ebx, 1
jne 0x41761c
cmp dword [edi + 0xe8], 0
jne 0x41761c
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x18c], eax
mov dword [esp + 0x190], eax
mov dword [esp + 0x194], eax
mov dword [esp + 0x198], eax
movzx esi, byte [edi]
add edx, 0xfffffffe
lea esi, [esp + esi + 0x18c]
mov ecx, edx
mov eax, 0xcccccccd
mul edx
shr edx, 3
mov al, dl
mov bl, 0xa
imul bl
sub cl, al
add cl, 0x30
sub esi, 1
cmp cl, 0x3a
jb 0x4175f6
add cl, 7
test edx, edx
mov byte [esi], cl
jne 0x4175d4
movzx eax, byte [edi]
push eax
lea ecx, [esp + 0x190]
push ecx
lea edx, [edi + 1]
push edx
call fcn.004591f0
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x58]
add esp, 0xc
movzx eax, byte [edi]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [edi + 1]
push ecx
add edx, eax
push edx
call fcn.004591f0
movzx ecx, byte [edi]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add eax, ecx
add ebx, 1
mov byte [edx + eax], 0xa
add eax, 1
add esp, 0xc
cmp ebx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], ebx
jl 0x417537
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x152c]
mov ecx, dword [esi + 0x1430]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esi + 0x1418]
jbe 0x4176d0
mov edi, dword [esp + 0x1c]
xor ebx, ebx
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
mov dword [eax], ecx
mov dword [eax + 4], edi
mov eax, dword [esi + 0x1558]
push ecx
push eax
call dword [0x47d334]
test eax, eax
je 0x417826
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x1558]
push ebx
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push eax
call dword [0x47d330]
test eax, eax
je 0x417826
jmp 0x417732
mov ecx, dword [esi + 0x1434]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
push 0
mov dword [eax + 4], edx
mov eax, dword [esi + 0x1434]
mov edx, dword [esi + 0x1558]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
mov dword [esp + 0x24], 0
call dword [0x47d334]
test eax, eax
je 0x417826
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x1558]
push ecx
push edx
push eax
call dword [0x47d330]
test eax, eax
je 0x417826
xor ebx, ebx
mov edi, dword [esi + 0x1424]
cmp edi, ebx
mov ecx, dword [esi + 0x1428]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], ecx
jle 0x417788
mov eax, dword [esi + 0x1558]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x28
push eax
call dword [0x47d334]
test eax, eax
je 0x417826
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 0x1558]
push ebx
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push eax
call dword [0x47d330]
test eax, eax
je 0x417826
mov eax, dword [esi + 0x1424]
mov edi, dword [esi + 0x142c]
mov ecx, dword [esi + 0x1430]
add eax, 0x28
cmp edi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], ecx
jle 0x4177de
push ebx
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esi + 0x1558]
push eax
call dword [0x47d334]
test eax, eax
je 0x417826
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 0x1558]
push ebx
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push eax
call dword [0x47d330]
test eax, eax
je 0x417826
mov edx, dword [esi + 0x1558]
mov edi, dword [esi + 0x1420]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 8
push edx
mov dword [esp + 0x24], ebx
add edi, 8
call dword [0x47d334]
test eax, eax
je 0x417826
mov ecx, dword [esi + 0x1558]
push ebx
lea eax, [esp + 0x18]
push eax
push 0x20
push edi
push ecx
call dword [0x47d330]
test eax, eax
je 0x417826
mov dword [esp + 0x54], 1
mov edx, dword [esp + 0x20]
push edx
call fcn.004528f3
add esp, 4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.004521f0
mov esp, ebp
pop ebp
ret 4