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

Disassembly:
push 0xffffffffffffffff
push 0x4d718d
mov eax, dword fs:[0]
push eax
mov eax, 0x2d18
mov dword fs:[0], esp
call fcn.004d0b30
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x2d38]
mov dword [esp + 0x60], esi
mov byte [esp + 0x13], 0
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 5
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x2d30], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
or ebx, 0xffffffff
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x78], ebx
mov eax, 0x64
push 0x320
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
call fcn.004c4f28
add esp, 4
mov dword [esp + 0x84], eax
mov dword [esp + 0x90], ebx
mov byte [esp + 0x2d30], 3
xor eax, eax
push 0x3e4
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov byte [esp + 0x35], al
lea eax, [esp + 0x234]
push esi
push eax
mov byte [esp + 0x34], 0
mov dword [esp + 0x238], esi
call fcn.004ce290
add esp, 0xc
push 0x4c
lea ecx, [esp + 0xa4]
push esi
push ecx
mov dword [esp + 0xa8], esi
call fcn.004ce290
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x23c]
mov dword [esp + 0x20], esi
mov esi, dword [edi + 8]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x238]
lea ebx, [esp + 0x23c]
lea ebp, [esp + 0x240]
mov ecx, 0x50
lea edi, [esp + 0xf8]
add esp, 0xc
sub edx, eax
sub ebx, eax
sub ebp, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
add eax, 8
mov edi, edi
mov esi, 5
mov edi, dword [eax - 8]
mov dword [ecx - 4], edi
mov edi, dword [eax - 4]
mov dword [ecx], edi
mov edi, dword [eax]
mov dword [edx + eax], edi
mov edi, dword [eax + 4]
mov dword [ebx + eax], edi
mov edi, dword [eax + 8]
mov dword [eax + ebp], edi
add ecx, 0x14
add eax, 0x14
dec esi
jne 0x4173d5
mov esi, dword [esp + 0x18]
mov edi, dword [esi]
mov esi, dword [esp + 0x14]
test edi, edi
je 0x41741a
mov dword [esp + esi*8 + 0x9c], edi
mov dword [esp + esi*8 + 0xa0], 1
add dword [esp + 0x18], 4
inc esi
mov dword [esp + 0x14], esi
cmp esi, 0xa
jl 0x4173d0
mov edx, dword [esp + 0x2d38]
cmp byte [edx + 0xd], 0
je 0x417af3
mov edi, dword [esp + 0x2d40]
test edi, edi
je 0x417af3
cmp dword [esp + 0x2d3c], 0
je 0x417af3
mov ebp, dword [esp + 0x2d54]
mov esi, ebp
imul esi, dword [esp + 0x2d50]
push esi
call fcn.004c4f28
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x417af3
mov ecx, dword [esp + 0x2d44]
cmp ecx, 0xffffffff
jne 0x4174cd
or ecx, ecx
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
test esi, esi
jle 0x4174cd
cmp ecx, 0xffffffff
jne 0x4174a5
mov ecx, dword [edi + eax*4]
jmp 0x4174c3
cmp dword [esp + 0x38], 0xffffffff
mov edx, dword [edi + eax*4]
jne 0x4174b9
cmp ecx, edx
je 0x4174c3
mov dword [esp + 0x38], edx
jmp 0x4174c3
cmp ecx, edx
je 0x4174c3
cmp dword [esp + 0x38], edx
jne 0x4174ca
inc eax
cmp eax, esi
jl 0x41749b
jmp 0x4174cd
or ecx, 0xffffffff
mov edx, dword [esp + 0x2d50]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
push edx
push ecx
push edi
xor ecx, ecx
xor eax, eax
call fcn.00418f50
add esp, 0x1c
test al, al
je 0x417ae4
cmp byte [esp + 0x14], 0
jne 0x417515
xor eax, eax
mov byte [esp + 0x14], 1
test esi, esi
jle 0x417515
cmp byte [eax + ebx], 1
setne cl
mov byte [eax + ebx], cl
inc eax
cmp eax, esi
jl 0x417506
cmp byte [esp + 0x14], 1
setne byte [esp + 0x12]
cmp byte [esp + 0x2d4c], 0
je 0x417546
xor eax, eax
test esi, esi
jle 0x417546
nop
movzx edx, byte [eax + ebx]
neg edx
sbb edx, edx
and edx, 0xffffff
mov dword [edi + eax*4], edx
inc eax
cmp eax, esi
jl 0x417530
mov eax, dword [esp + 0x2d54]
mov ecx, dword [esp + 0x2d50]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
push ebx
call fcn.00419a20
add esp, 0x18
test al, al
je 0x417ae4
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2d3c]
push edx
lea esi, [esp + 0x6c]
call fcn.004182c0
test al, al
je 0x417ae4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4178a7
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x50]
mov edi, dword [eax + 4]
xor ebx, ebx
lea ebp, [edi + 0x28]
cmp esi, ebx
je 0x417605
mov dword [esp + 0x1c], esi
mov byte [esp + 0x2d30], 4
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x4175d1
push 1
call fcn.00414ef0
mov byte [esp + 0x2d30], 3
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4175fc
mov ecx, dword [esi]
push ecx
push ebx
push eax
call fcn.004ce290
mov edx, dword [esi + 4]
add esp, 0xc
push edx
call fcn.004c57e5
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.004c57da
add esp, 4
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
mov edx, dword [esp + 0x14]
push edi
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
push ebp
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
call fcn.00419d80
add esp, 0x18
test al, al
je 0x417ae0
lea edi, [esp + 0x68]
call fcn.004184c0
test al, al
je 0x417ae0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], eax
test eax, eax
je 0x417894
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 4]
lea edi, [esp + 0x68]
call fcn.00418560
test al, al
je 0x417ae0
cmp byte [esp + 0x2d48], 0
je 0x41772d
mov edi, dword [esi + 0x1c]
or ebx, 0xffffffff
cmp edi, dword [esi + 0x14]
jge 0x4176ca
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
cmp ecx, eax
jge 0x4176c4
lea ebp, [ecx - 1]
test ecx, ecx
je 0x4176bb
cmp ebx, ebp
je 0x4176bb
mov dl, byte [esp + 0x14]
imul eax, edi
add eax, ecx
cmp byte [eax + esi + 0x28], dl
jne 0x4176bb
cmp byte [eax + esi + 0x27], dl
je 0x4176bb
mov dl, byte [esp + 0x12]
mov byte [eax + esi + 0x28], dl
mov ebx, ecx
mov eax, dword [esi + 0x10]
inc ecx
inc ebp
cmp ecx, eax
jl 0x417694
inc edi
cmp edi, dword [esi + 0x14]
jl 0x417687
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x18], 0xffffffff
cmp ebp, dword [esi + 0x10]
jge 0x41772d
lea ebx, [ebx]
mov edi, dword [esi + 0x1c]
cmp edi, dword [esi + 0x14]
jge 0x417727
lea edx, [edi - 1]
test edi, edi
je 0x417720
cmp dword [esp + 0x18], edx
je 0x417720
mov ecx, dword [esi + 0x10]
mov bl, byte [esp + 0x14]
mov eax, ecx
imul eax, edi
add eax, ebp
cmp byte [eax + esi + 0x28], bl
jne 0x417720
imul ecx, edx
add ecx, ebp
cmp byte [ecx + esi + 0x28], bl
je 0x417720
mov cl, byte [esp + 0x12]
mov byte [eax + esi + 0x28], cl
mov dword [esp + 0x18], edi
inc edi
inc edx
cmp edi, dword [esi + 0x14]
jl 0x4176eb
inc ebp
cmp ebp, dword [esi + 0x10]
jl 0x4176e0
mov edx, dword [esi + 0x10]
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
mov dword [esp + 0x18], 0
fld qword [0x50a080]
lea edi, [esp + 0x614]
fld st(0)
fdivrp st(2)
fidiv dword [esi + 0x14]
fild dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
fdiv st(1)
call fcn.004d3dc0
mov ebp, eax
imul ebp, dword [esp + 0x4c]
fild dword [esp + 0x1c]
fdiv st(2)
call fcn.004d3dc0
add eax, ebp
mov al, byte [eax + esi + 0x28]
inc ebx
mov byte [edi], al
inc edi
mov dword [esp + 0x1c], ebx
cmp ebx, 0x64
jl 0x41776c
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x64
jl 0x417754
mov bl, byte [esp + 0x14]
fstp st(1)
mov eax, 0x64
fstp st(0)
mov ecx, eax
push ecx
push eax
lea ecx, [esp + 0x61c]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x98]
push edx
call fcn.0041a200
mov edx, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x94]
add esp, 0x1c
add eax, edx
add ecx, edi
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edi
cmp esi, 9
ja 0x417ae0
mov ebp, esi
imul ebp, ebp, 0x64
sub eax, edx
mov edx, dword [esp + 0x2d38]
mov ebx, esi
lea ebp, [esp + ebp + 0x22c]
shl ebx, 5
sub ecx, edi
cmp byte [edx + 0xd], 0
mov dword [esp + 0x1c], ebp
lea ebx, [esp + ebx + 0xec]
lea ebp, [esp + esi*8 + 0x9c]
je 0x417ae0
push ecx
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x8c]
push eax
push ebx
push ecx
push ebp
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x630]
push ecx
push edx
lea eax, [esp + 0xb8]
call fcn.00417c00
test al, al
je 0x417ae0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x10]
mov byte [esp + esi + 0x28], 1
mov dword [esp + 0x20], eax
test eax, eax
jne 0x417656
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4175a3
fld qword [0x50a038]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x230]
xor eax, eax
mov ebx, ecx
lea edx, [eax + 5]
mov ecx, dword [ebx - 4]
cmp ecx, eax
jle 0x4178ce
mov eax, ecx
mov ecx, dword [ebx]
cmp ecx, eax
jle 0x4178d6
mov eax, ecx
mov ecx, dword [ebx + 4]
cmp ecx, eax
jle 0x4178df
mov eax, ecx
mov ecx, dword [ebx + 8]
cmp ecx, eax
jle 0x4178e8
mov eax, ecx
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
jle 0x4178f1
mov eax, ecx
add ebx, 0x14
dec edx
jne 0x4178c5
mov ecx, dword [esp + 0x24]
mov dl, byte [esp + ecx + 0x28]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
xor ebp, ebp
mov byte [esp + 0x12], dl
fdivr st(1)
xor edi, edi
cmp byte [esp + 0x12], 0
je 0x417941
mov eax, dword [esp + 0x20]
add eax, ebp
lea esi, [edi + eax*4]
add esi, eax
add esi, esi
add esi, esi
fild dword [esp + esi + 0x22c]
fmul st(1)
call fcn.004d3dc0
mov ecx, dword [esp + 0x2d38]
mov edx, dword [ecx]
mov dword [esi + edx], eax
inc edi
cmp edi, 5
jl 0x417911
inc ebp
cmp ebp, 5
jl 0x41790f
mov eax, dword [esp + 0x20]
fstp st(0)
inc dword [esp + 0x24]
add eax, 5
mov ecx, ebx
mov dword [esp + 0x20], eax
cmp eax, 0x32
jl 0x4178be
fstp st(0)
xor esi, esi
lea ecx, [ecx]
cmp byte [esp + esi + 0x28], 0
je 0x4179b4
mov eax, dword [esp + esi*8 + 0x9c]
cdq
idiv dword [esp + esi*8 + 0xa0]
sub esp, 8
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fadd qword [0x50a070]
fstp qword [esp]
call fcn.004d4890
add esp, 8
call fcn.004d3dc0
mov ecx, dword [esp + 0x2d38]
mov edx, dword [ecx + 4]
mov dword [edx + esi*4], eax
inc esi
cmp esi, 0xa
jl 0x417970
cmp byte [esp + 0x28], 0
mov eax, dword [esp + 0x2d38]
je 0x4179d9
mov edi, dword [eax + 8]
mov ecx, 8
lea esi, [esp + 0xec]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x29], 0
je 0x4179f4
mov edi, dword [eax + 8]
add edi, 0x20
mov ecx, 8
lea esi, [esp + 0x10c]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x2a], 0
je 0x417a0f
mov edi, dword [eax + 8]
add edi, 0x40
mov ecx, 8
lea esi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x2b], 0
je 0x417a2a
mov edi, dword [eax + 8]
add edi, 0x60
mov ecx, 8
lea esi, [esp + 0x14c]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x2c], 0
je 0x417a45
mov edi, dword [eax + 8]
sub edi, 0xffffff80
mov ecx, 8
lea esi, [esp + 0x16c]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x2d], 0
je 0x417a63
mov edi, dword [eax + 8]
add edi, 0xa0
mov ecx, 8
lea esi, [esp + 0x18c]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x2e], 0
je 0x417a81
mov edi, dword [eax + 8]
add edi, 0xc0
mov ecx, 8
lea esi, [esp + 0x1ac]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x2f], 0
je 0x417a9f
mov edi, dword [eax + 8]
add edi, 0xe0
mov ecx, 8
lea esi, [esp + 0x1cc]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x30], 0
je 0x417abd
mov edi, dword [eax + 8]
add edi, 0x100
mov ecx, 8
lea esi, [esp + 0x1ec]
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x31], 0
je 0x417adb
mov edi, dword [eax + 8]
add edi, 0x120
mov ecx, 8
lea esi, [esp + 0x20c]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x13], 1
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
push ebx
call fcn.004c57e5
add esp, 4
jmp 0x417af7
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x84]
xor ebx, ebx
cmp eax, ebx
je 0x417b0d
push eax
call fcn.004c57e5
add esp, 4
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x417b2d
mov eax, dword [esp + 0x68]
push eax
push ebx
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x417b83
mov dword [esp + 0x34], esi
mov byte [esp + 0x2d30], 5
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x417b4f
push 1
call fcn.00414ef0
mov byte [esp + 0x2d30], 0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x417b7a
mov ecx, dword [esi]
push ecx
push ebx
push eax
call fcn.004ce290
mov edx, dword [esi + 4]
add esp, 0xc
push edx
call fcn.004c57e5
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.004c57da
add esp, 4
or esi, 0xffffffff
mov dword [esp + 0x2d30], esi
cmp edi, ebx
je 0x417be1
mov dword [esp + 0x34], edi
mov dword [esp + 0x2d30], 6
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
je 0x417bae
push 1
call fcn.00414ef0
mov dword [esp + 0x2d30], esi
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x417bd8
mov ecx, dword [edi]
push ecx
push ebx
push eax
call fcn.004ce290
mov edx, dword [edi + 4]
add esp, 0xc
push edx
call fcn.004c57e5
add esp, 4
mov dword [edi + 4], ebx
push edi
call fcn.004c57da
add esp, 4
mov ecx, dword [esp + 0x2d28]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2d24
ret 0x20