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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x578134]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
sub esp, 0x10
mov dword [esp + 0x44], ebx
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0044c2ee
lea esi, [ebx + 0x158]
lea edi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x560]
lea edi, [esp + 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00442e71
lea ecx, [esp + 0x94]
push ecx
mov ecx, eax
call fcn.0043e8a4
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x98]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add edi, dword [esp + 0x94]
add dword [ebp + 0xc], ecx
sub eax, dword [esp + 0xa0]
sub ebx, dword [esp + 0x9c]
mov ecx, dword [esi + 0x588]
mov dword [esp + 0x2c], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], ebx
mov dword [esp + 0x28], eax
mov dword [ebp + 0x14], eax
test ecx, ecx
je 0x46fb10
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x46fb10
mov ecx, dword [esi + 0x588]
mov eax, dword [ecx]
call dword [eax + 0x7c]
sub ebx, eax
mov dword [ebp + 0x10], ebx
mov ecx, dword [esi + 0x58c]
test ecx, ecx
je 0x46fb43
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x46fb43
mov ecx, dword [esi + 0x58c]
mov eax, dword [ecx]
call dword [eax + 0x84]
mov ecx, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x28], ecx
mov dword [ebp + 0x14], ecx
jmp 0x46fb47
mov ecx, dword [esp + 0x28]
cmp dword [esi + 0x558], 0
jne 0x46fb71
mov eax, dword [esi]
lea esi, [ebp + 8]
mov ecx, dword [esp + 0x30]
push 0
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x20c]
jmp 0x4702f1
sub ecx, dword [ebp + 0xc]
sub ebx, edi
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x588]
mov dword [esp + 0x1c], ebx
test ecx, ecx
je 0x46fba4
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x46fba4
mov eax, dword [esi + 0x588]
mov eax, dword [eax + 0x558]
add dword [esp + 0x38], eax
and dword [esp + 0x44], 0
xor eax, eax
and dword [esp + 0x24], 0
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], edx
cmp dword [esi + 0x558], eax
jle 0x46fdb6
mov eax, dword [esi + 0x554]
mov ebx, dword [eax + edx*4]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0xf4]
test al, al
je 0x46fd91
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test al, al
jne 0x46fd91
mov eax, dword [ebx]
lea ecx, [esp + 0x94]
mov esi, dword [esp + 0x38]
push ecx
mov ecx, ebx
call dword [eax + 0x6c]
mov eax, dword [ebx]
mov ecx, ebx
sub esi, dword [esp + 0xa0]
sub esi, dword [esp + 0x98]
call dword [eax + 0x7c]
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x18], eax
call dword [edx + 0x84]
cmp dword [esp + 0x18], 0
mov edi, eax
jg 0x46fc46
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x94]
mov dword [esp + 0x18], eax
test edi, edi
jg 0x46fc56
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa4]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
cmp eax, dword [esp + 0x18]
mov eax, dword [ebx]
cmovg ecx, dword [esp + 0x18]
cmp esi, edi
cmovg esi, edi
push esi
push ecx
lea ecx, [esp + 0x94]
push ecx
mov ecx, ebx
call dword [eax + 0x140]
cmp dword [esp + 0x8c], 0
jne 0x46fc8e
inc dword [esp + 0x24]
jmp 0x46fcd6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
cmp dword [esp + 0x8c], eax
jge 0x46fcb2
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x94]
cmp dword [esp + 0x8c], eax
jle 0x46fcd6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x94]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [eax + 0x6c]
lea eax, [esp + 0x6c]
push eax
call edi
mov esi, eax
mov ecx, ebx
lea eax, [esp + 0x5c]
push eax
call edi
mov ecx, dword [esi + 8]
add ecx, dword [eax]
xor eax, eax
add ecx, dword [esp + 0x8c]
add dword [esp + 0x10], ecx
mov ecx, ebx
cmp dword [esp + 0x90], eax
cmovg eax, dword [esp + 0x90]
mov dword [esp + 0x90], eax
mov eax, dword [ebx]
call dword [eax + 0x9c]
cmp dword [esp + 0x90], eax
jge 0x46fd3b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x9c]
mov dword [esp + 0x90], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa4]
mov edx, dword [esp + 0x90]
cmp edx, eax
jle 0x46fd63
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa4]
mov edx, eax
mov dword [esp + 0x90], edx
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x98]
add ecx, edx
mov esi, dword [esp + 0x30]
add eax, ecx
cmp dword [esp + 0x44], eax
cmovg eax, dword [esp + 0x44]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
jmp 0x46fd95
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
inc edx
mov dword [esp + 0x34], edx
cmp edx, dword [esi + 0x558]
jl 0x46fbcc
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
and dword [esp + 0x34], 0
lea edx, [eax - 1]
mov eax, dword [esi + 0x570]
and dword [esp + 0x4c], 0
imul eax, edx
mov dword [esp + 0x58], edx
add ecx, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x10], ecx
jle 0x46fdf1
mov eax, ebx
sub eax, ecx
xor ecx, ecx
cdq
idiv dword [esp + 0x24]
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [esi + 0x58c]
mov dword [esp + 0x18], edi
test ecx, ecx
je 0x46fe19
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x46fe19
mov eax, dword [esi + 0x58c]
sub edi, dword [eax + 0x560]
jmp 0x46fe51
cmp dword [esp + 0x24], 0
jg 0x46fe55
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x17c]
cmp eax, 1
jne 0x46fe42
mov eax, ebx
sub eax, dword [esp + 0x10]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x18]
jmp 0x46fe51
cmp eax, 2
jne 0x46fe55
mov edi, dword [esp + 0x18]
sub edi, dword [esp + 0x10]
add edi, ebx
mov dword [esp + 0x2c], edi
xor eax, eax
xor ecx, ecx
and dword [esp + 0x48], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ecx
cmp dword [esi + 0x558], eax
jle 0x4702c5
mov eax, dword [esi + 0x554]
mov ebx, dword [eax + ecx*4]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0xf4]
test al, al
je 0x4702b0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test al, al
je 0x46fead
mov eax, dword [esi]
mov ecx, esi
push dword [esp + 0x40]
call dword [eax + 0x208]
jmp 0x4702b0
mov eax, dword [ebx]
lea ecx, [esp + 0x94]
inc dword [esp + 0x20]
push ecx
mov ecx, ebx
call dword [eax + 0x6c]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
sub eax, dword [esp + 0x94]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x98]
mov dword [esp + 0x50], eax
mov eax, dword [ebx]
call dword [eax + 0x7c]
mov edx, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x18], eax
call dword [edx + 0x84]
cmp dword [esp + 0x18], 0
mov ecx, eax
mov dword [esp + 0x14], ecx
jg 0x46ff19
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x94]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
test ecx, ecx
jg 0x46ff29
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa4]
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
cmovg eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
cmp eax, ecx
mov edx, eax
cmovg edx, ecx
cmovle ecx, eax
mov eax, dword [esp + 0x9c]
add eax, dword [esp + 0x94]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
sub ecx, eax
cmp dword [esp + 0x20], 1
mov dword [esp + 0x10], ecx
jle 0x46ff79
sub ecx, dword [esi + 0x570]
mov dword [esp + 0x10], ecx
mov eax, dword [ebx]
lea ecx, [esp + 0x8c]
push edx
mov edx, dword [esp + 0x40]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x140]
cmp dword [esp + 0x8c], 0
jne 0x47001f
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x8c], eax
cmp ecx, dword [esp + 0x24]
jne 0x46ffd5
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x10]
push 0
pop ecx
cmovs eax, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
cmp dword [esp + 0x8c], eax
jge 0x46fff9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x94]
cmp dword [esp + 0x8c], eax
jle 0x47006f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x94]
mov dword [esp + 0x8c], eax
jmp 0x47006f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
cmp dword [esp + 0x8c], eax
jge 0x470043
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x94]
mov ecx, dword [esp + 0x8c]
cmp ecx, eax
jle 0x47006b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x94]
mov ecx, eax
mov dword [esp + 0x8c], ecx
sub dword [esp + 0x10], ecx
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa4]
test eax, eax
jne 0x47008f
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x98]
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov ecx, ebx
cmp eax, dword [esp + 0x14]
cmovg eax, dword [esp + 0x14]
mov dword [esp + 0x90], eax
mov eax, dword [ebx]
call dword [eax + 0x9c]
cmp dword [esp + 0x90], eax
jge 0x4700ca
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x9c]
mov dword [esp + 0x90], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x184]
mov ecx, dword [esi + 0x588]
cmp eax, 4
jne 0x47016c
mov eax, dword [esp + 0x28]
add eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x47011e
mov edx, dword [ecx]
call dword [edx + 0xf4]
test al, al
je 0x47011e
mov ecx, dword [esi + 0x588]
mov eax, dword [ecx + 0x558]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx + 0x560]
add dword [esp + 0x14], eax
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
lea eax, [ecx + edi]
mov dword [esp + 0x7c], eax
mov eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
sub edx, eax
mov eax, dword [esp + 0x8c]
add eax, ecx
mov dword [esp + 0x80], edx
add eax, edi
mov dword [esp + 0x84], eax
lea eax, [esi + edx]
mov dword [esp + 0x88], eax
lea esi, [esp + 0x7c]
jmp 0x470257
cmp eax, 8
jne 0x4701eb
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x50], edx
test ecx, ecx
je 0x4701a9
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x4701a5
mov eax, dword [esi + 0x588]
mov edx, dword [eax + 0x558]
sub edx, dword [eax + 0x560]
add edx, dword [esp + 0x50]
jmp 0x4701a9
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x94]
lea esi, [esp + 0x5c]
lea eax, [ecx + edi]
mov dword [esp + 0x5c], eax
mov eax, edx
sub eax, dword [esp + 0x90]
sub eax, dword [esp + 0xa0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x8c]
add eax, ecx
add eax, edi
sub edx, dword [esp + 0xa0]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
jmp 0x470257
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x470215
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x470215
mov eax, dword [esi + 0x588]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x560]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x98]
lea eax, [ecx + edi]
mov dword [esp + 0x6c], eax
lea eax, [esi + edx]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x8c]
add eax, ecx
add eax, edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x90]
add eax, esi
lea esi, [esp + 0x6c]
add eax, edx
mov dword [esp + 0x78], eax
mov eax, dword [ebx]
mov ecx, ebx
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x54]
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea eax, [edx + ecx]
mov esi, dword [ebx + 0x570]
add eax, esi
add eax, dword [esp + 0x94]
add edi, eax
lea eax, [edx + ecx]
add eax, dword [esp + 0x94]
add dword [esp + 0x34], eax
lea eax, [edx + ecx]
add eax, esi
mov dword [esp + 0x2c], edi
sub dword [esp + 0x1c], eax
mov esi, ebx
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, dword [esi + 0x558]
jl 0x46fe71
mov eax, dword [esi + 0x570]
imul eax, dword [esp + 0x58]
push dword [esp + 0x44]
mov edx, dword [esi]
lea esi, [ebp + 8]
mov ecx, dword [esp + 0x34]
add eax, dword [esp + 0x38]
push eax
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [edx + 0x20c]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004eacf5
mov esp, ebp
pop ebp
ret 0x14