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

Disassembly:
push 0xffffffffffffffff
push 0x4cc58d
mov eax, dword fs:[0]
push eax
mov eax, 0x2d18
mov dword fs:[0], esp
call fcn.004c6f60
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.004ba2ed
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.004c16a0
add esp, 0xc
push 0x4c
lea ecx, [esp + 0xa4]
push esi
push ecx
mov dword [esp + 0xa8], esi
call fcn.004c16a0
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 0x415cb5
mov esi, dword [esp + 0x18]
mov edi, dword [esi]
mov esi, dword [esp + 0x14]
test edi, edi
je 0x415cfa
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 0x415cb0
mov edx, dword [esp + 0x2d38]
cmp byte [edx + 0xd], 0
je 0x4163d3
mov edi, dword [esp + 0x2d40]
test edi, edi
je 0x4163d3
cmp dword [esp + 0x2d3c], 0
je 0x4163d3
mov ebp, dword [esp + 0x2d54]
mov esi, ebp
imul esi, dword [esp + 0x2d50]
push esi
call fcn.004ba2ed
mov ebx, eax
add esp, 4
mov dword [esp + 0x48], ebx
test ebx, ebx
je 0x4163d3
mov ecx, dword [esp + 0x2d44]
cmp ecx, 0xffffffff
jne 0x415dad
or ecx, ecx
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
test esi, esi
jle 0x415dad
cmp ecx, 0xffffffff
jne 0x415d85
mov ecx, dword [edi + eax*4]
jmp 0x415da3
cmp dword [esp + 0x38], 0xffffffff
mov edx, dword [edi + eax*4]
jne 0x415d99
cmp ecx, edx
je 0x415da3
mov dword [esp + 0x38], edx
jmp 0x415da3
cmp ecx, edx
je 0x415da3
cmp dword [esp + 0x38], edx
jne 0x415daa
inc eax
cmp eax, esi
jl 0x415d7b
jmp 0x415dad
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.00417800
add esp, 0x1c
test al, al
je 0x4163c4
cmp byte [esp + 0x14], 0
jne 0x415df5
xor eax, eax
mov byte [esp + 0x14], 1
test esi, esi
jle 0x415df5
cmp byte [eax + ebx], 1
setne cl
mov byte [eax + ebx], cl
inc eax
cmp eax, esi
jl 0x415de6
cmp byte [esp + 0x14], 1
setne byte [esp + 0x12]
cmp byte [esp + 0x2d4c], 0
je 0x415e26
xor eax, eax
test esi, esi
jle 0x415e26
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 0x415e10
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.004182d0
add esp, 0x18
test al, al
je 0x4163c4
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x2d3c]
push edx
lea esi, [esp + 0x6c]
call fcn.00416bd0
test al, al
je 0x4163c4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
test eax, eax
je 0x416187
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 0x415ee5
mov dword [esp + 0x1c], esi
mov byte [esp + 0x2d30], 4
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x415eb1
push 1
call fcn.00413850
mov byte [esp + 0x2d30], 3
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x415edc
mov ecx, dword [esi]
push ecx
push ebx
push eax
call fcn.004c16a0
mov edx, dword [esi + 4]
add esp, 0xc
push edx
call fcn.004ba14c
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.004b9d3f
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.00418630
add esp, 0x18
test al, al
je 0x4163c0
lea edi, [esp + 0x68]
call fcn.00416d80
test al, al
je 0x4163c0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x416174
mov eax, dword [esp + 0x20]
mov esi, dword [eax + 4]
lea ecx, [esp + 0x68]
push ecx
call fcn.00416e10
test al, al
je 0x4163c0
cmp byte [esp + 0x2d48], 0
je 0x41600d
mov edi, dword [esi + 0x1c]
or ebx, 0xffffffff
cmp edi, dword [esi + 0x14]
jge 0x415fab
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
cmp ecx, eax
jge 0x415fa5
lea ebp, [ecx - 1]
test ecx, ecx
je 0x415f9c
cmp ebx, ebp
je 0x415f9c
mov dl, byte [esp + 0x14]
imul eax, edi
add eax, ecx
cmp byte [eax + esi + 0x28], dl
jne 0x415f9c
cmp byte [eax + esi + 0x27], dl
je 0x415f9c
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 0x415f75
inc edi
cmp edi, dword [esi + 0x14]
jl 0x415f68
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x18], 0xffffffff
cmp ebp, dword [esi + 0x10]
jge 0x41600d
jmp 0x415fc0
mov edi, dword [esi + 0x1c]
cmp edi, dword [esi + 0x14]
jge 0x416007
lea edx, [edi - 1]
test edi, edi
je 0x416000
cmp dword [esp + 0x18], edx
je 0x416000
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 0x416000
imul ecx, edx
add ecx, ebp
cmp byte [ecx + esi + 0x28], bl
je 0x416000
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 0x415fcb
inc ebp
cmp ebp, dword [esi + 0x10]
jl 0x415fc0
mov edx, dword [esi + 0x10]
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
mov dword [esp + 0x18], 0
fld qword [0x4e58c0]
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.004c9200
mov ebp, eax
imul ebp, dword [esp + 0x4c]
fild dword [esp + 0x1c]
fdiv st(2)
call fcn.004c9200
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 0x41604c
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x64
jl 0x416034
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.00418ab0
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 0x4163c0
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 0x4163c0
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.004164e0
test al, al
je 0x4163c0
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 0x415f36
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x415e83
fld qword [0x4e5870]
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 0x4161ae
mov eax, ecx
mov ecx, dword [ebx]
cmp ecx, eax
jle 0x4161b6
mov eax, ecx
mov ecx, dword [ebx + 4]
cmp ecx, eax
jle 0x4161bf
mov eax, ecx
mov ecx, dword [ebx + 8]
cmp ecx, eax
jle 0x4161c8
mov eax, ecx
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
jle 0x4161d1
mov eax, ecx
add ebx, 0x14
dec edx
jne 0x4161a5
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 0x416221
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.004c9200
mov ecx, dword [esp + 0x2d38]
mov edx, dword [ecx]
mov dword [esi + edx], eax
inc edi
cmp edi, 5
jl 0x4161f1
inc ebp
cmp ebp, 5
jl 0x4161ef
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 0x41619e
fstp st(0)
xor esi, esi
lea ecx, [ecx]
cmp byte [esp + esi + 0x28], 0
je 0x416294
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 [0x4e58b0]
fstp qword [esp]
call fcn.004c9900
add esp, 8
call fcn.004c9200
mov ecx, dword [esp + 0x2d38]
mov edx, dword [ecx + 4]
mov dword [edx + esi*4], eax
inc esi
cmp esi, 0xa
jl 0x416250
cmp byte [esp + 0x28], 0
mov eax, dword [esp + 0x2d38]
je 0x4162b9
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 0x4162d4
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 0x4162ef
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 0x41630a
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 0x416325
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 0x416343
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 0x416361
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 0x41637f
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 0x41639d
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 0x4163bb
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.004ba14c
add esp, 4
jmp 0x4163d7
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x84]
xor ebx, ebx
cmp eax, ebx
je 0x4163ed
push eax
call fcn.004ba14c
add esp, 4
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x41640d
mov eax, dword [esp + 0x68]
push eax
push ebx
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x416463
mov dword [esp + 0x34], esi
mov byte [esp + 0x2d30], 5
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x41642f
push 1
call fcn.00413850
mov byte [esp + 0x2d30], 0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41645a
mov ecx, dword [esi]
push ecx
push ebx
push eax
call fcn.004c16a0
mov edx, dword [esi + 4]
add esp, 0xc
push edx
call fcn.004ba14c
add esp, 4
mov dword [esi + 4], ebx
push esi
call fcn.004b9d3f
add esp, 4
or esi, 0xffffffff
mov dword [esp + 0x2d30], esi
cmp edi, ebx
je 0x4164c1
mov dword [esp + 0x34], edi
mov dword [esp + 0x2d30], 6
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
je 0x41648e
push 1
call fcn.00413850
mov dword [esp + 0x2d30], esi
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x4164b8
mov ecx, dword [edi]
push ecx
push ebx
push eax
call fcn.004c16a0
mov edx, dword [edi + 4]
add esp, 0xc
push edx
call fcn.004ba14c
add esp, 4
mov dword [edi + 4], ebx
push edi
call fcn.004b9d3f
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