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

Disassembly:
push 0xffffffffffffffff
push 0x4dbe4d
mov eax, dword fs:[0]
push eax
mov eax, 0x2d18
mov dword fs:[0], esp
call fcn.004d5830
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.004c9c38
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.004d2f90
add esp, 0xc
push 0x4c
lea ecx, [esp + 0xa4]
push esi
push ecx
mov dword [esp + 0xa8], esi
call fcn.004d2f90
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 0x416495
mov esi, dword [esp + 0x18]
mov edi, dword [esi]
mov esi, dword [esp + 0x14]
test edi, edi
je 0x4164da
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 0x416490
mov edx, dword [esp + 0x2d38]
cmp byte [edx + 0xd], 0
je 0x416bb3
mov edi, dword [esp + 0x2d40]
test edi, edi
je 0x416bb3
cmp dword [esp + 0x2d3c], 0
je 0x416bb3
mov ebp, dword [esp + 0x2d54]
mov esi, ebp
imul esi, dword [esp + 0x2d50]
push esi
call fcn.004c9c38
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x416bb3
mov ecx, dword [esp + 0x2d44]
cmp ecx, 0xffffffff
jne 0x41658d
or ecx, ecx
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
test esi, esi
jle 0x41658d
cmp ecx, 0xffffffff
jne 0x416565
mov ecx, dword [edi + eax*4]
jmp 0x416583
cmp dword [esp + 0x38], 0xffffffff
mov edx, dword [edi + eax*4]
jne 0x416579
cmp ecx, edx
je 0x416583
mov dword [esp + 0x38], edx
jmp 0x416583
cmp ecx, edx
je 0x416583
cmp dword [esp + 0x38], edx
jne 0x41658a
inc eax
cmp eax, esi
jl 0x41655b
jmp 0x41658d
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.00418010
add esp, 0x1c
test al, al
je 0x416ba4
cmp byte [esp + 0x14], 0
jne 0x4165d5
xor eax, eax
mov byte [esp + 0x14], 1
test esi, esi
jle 0x4165d5
cmp byte [eax + ebx], 1
setne cl
mov byte [eax + ebx], cl
inc eax
cmp eax, esi
jl 0x4165c6
cmp byte [esp + 0x14], 1
setne byte [esp + 0x12]
cmp byte [esp + 0x2d4c], 0
je 0x416606
xor eax, eax
test esi, esi
jle 0x416606
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 0x4165f0
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.00418ae0
add esp, 0x18
test al, al
je 0x416ba4
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x2d3c]
push edx
lea esi, [esp + 0x6c]
call fcn.00417380
test al, al
je 0x416ba4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
test eax, eax
je 0x416967
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 0x4166c5
mov dword [esp + 0x1c], esi
mov byte [esp + 0x2d30], 4
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x416691
push 1
call fcn.00413f30
mov byte [esp + 0x2d30], 3
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4166bc
mov ecx, dword [esi]
push ecx
push ebx
push eax
call fcn.004d2f90
mov edx, dword [esi + 4]
add esp, 0xc
push edx
call fcn.004ca991
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.004cb3e6
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.00418e40
add esp, 0x18
test al, al
je 0x416ba0
lea edi, [esp + 0x68]
call fcn.00417580
test al, al
je 0x416ba0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], eax
test eax, eax
je 0x416954
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 4]
lea edi, [esp + 0x68]
call fcn.00417620
test al, al
je 0x416ba0
cmp byte [esp + 0x2d48], 0
je 0x4167ed
mov edi, dword [esi + 0x1c]
or ebx, 0xffffffff
cmp edi, dword [esi + 0x14]
jge 0x41678a
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
cmp ecx, eax
jge 0x416784
lea ebp, [ecx - 1]
test ecx, ecx
je 0x41677b
cmp ebx, ebp
je 0x41677b
mov dl, byte [esp + 0x14]
imul eax, edi
add eax, ecx
cmp byte [eax + esi + 0x28], dl
jne 0x41677b
cmp byte [eax + esi + 0x27], dl
je 0x41677b
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 0x416754
inc edi
cmp edi, dword [esi + 0x14]
jl 0x416747
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x18], 0xffffffff
cmp ebp, dword [esi + 0x10]
jge 0x4167ed
lea ebx, [ebx]
mov edi, dword [esi + 0x1c]
cmp edi, dword [esi + 0x14]
jge 0x4167e7
lea edx, [edi - 1]
test edi, edi
je 0x4167e0
cmp dword [esp + 0x18], edx
je 0x4167e0
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 0x4167e0
imul ecx, edx
add ecx, ebp
cmp byte [ecx + esi + 0x28], bl
je 0x4167e0
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 0x4167ab
inc ebp
cmp ebp, dword [esi + 0x10]
jl 0x4167a0
mov edx, dword [esi + 0x10]
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
mov dword [esp + 0x18], 0
fld qword [0x50f858]
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.004d8ac0
mov ebp, eax
imul ebp, dword [esp + 0x4c]
fild dword [esp + 0x1c]
fdiv st(2)
call fcn.004d8ac0
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 0x41682c
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x64
jl 0x416814
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.004192c0
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 0x416ba0
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 0x416ba0
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.00416cc0
test al, al
je 0x416ba0
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 0x416716
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x416663
fld qword [0x50f810]
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 0x41698e
mov eax, ecx
mov ecx, dword [ebx]
cmp ecx, eax
jle 0x416996
mov eax, ecx
mov ecx, dword [ebx + 4]
cmp ecx, eax
jle 0x41699f
mov eax, ecx
mov ecx, dword [ebx + 8]
cmp ecx, eax
jle 0x4169a8
mov eax, ecx
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
jle 0x4169b1
mov eax, ecx
add ebx, 0x14
dec edx
jne 0x416985
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 0x416a01
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.004d8ac0
mov ecx, dword [esp + 0x2d38]
mov edx, dword [ecx]
mov dword [esi + edx], eax
inc edi
cmp edi, 5
jl 0x4169d1
inc ebp
cmp ebp, 5
jl 0x4169cf
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 0x41697e
fstp st(0)
xor esi, esi
lea ecx, [ecx]
cmp byte [esp + esi + 0x28], 0
je 0x416a74
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 [0x50f848]
fstp qword [esp]
call fcn.004d9590
add esp, 8
call fcn.004d8ac0
mov ecx, dword [esp + 0x2d38]
mov edx, dword [ecx + 4]
mov dword [edx + esi*4], eax
inc esi
cmp esi, 0xa
jl 0x416a30
cmp byte [esp + 0x28], 0
mov eax, dword [esp + 0x2d38]
je 0x416a99
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 0x416ab4
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 0x416acf
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 0x416aea
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 0x416b05
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 0x416b23
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 0x416b41
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 0x416b5f
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 0x416b7d
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 0x416b9b
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.004ca991
add esp, 4
jmp 0x416bb7
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x84]
xor ebx, ebx
cmp eax, ebx
je 0x416bcd
push eax
call fcn.004ca991
add esp, 4
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x416bed
mov eax, dword [esp + 0x68]
push eax
push ebx
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x416c43
mov dword [esp + 0x34], esi
mov byte [esp + 0x2d30], 5
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x416c0f
push 1
call fcn.00413f30
mov byte [esp + 0x2d30], 0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x416c3a
mov ecx, dword [esi]
push ecx
push ebx
push eax
call fcn.004d2f90
mov edx, dword [esi + 4]
add esp, 0xc
push edx
call fcn.004ca991
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.004cb3e6
add esp, 4
or esi, 0xffffffff
mov dword [esp + 0x2d30], esi
cmp edi, ebx
je 0x416ca1
mov dword [esp + 0x34], edi
mov dword [esp + 0x2d30], 6
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
je 0x416c6e
push 1
call fcn.00413f30
mov dword [esp + 0x2d30], esi
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x416c98
mov ecx, dword [edi]
push ecx
push ebx
push eax
call fcn.004d2f90
mov edx, dword [edi + 4]
add esp, 0xc
push edx
call fcn.004ca991
add esp, 4
mov dword [edi + 4], ebx
push edi
call fcn.004cb3e6
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