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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x54847c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x44], ebx
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x3c]
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.0042778d
mov ecx, dword [ebx + 0x560]
lea esi, [ebx + 0x158]
lea edi, [esp + 0x28]
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 eax, dword [esp + 0x2c]
add eax, dword [ebx + 0x564]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
sub esi, dword [ebx + 0x568]
add dword [esp + 0x28], ecx
sub edi, dword [ebx + 0x56c]
mov ecx, dword [ebx + 0x584]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x6c0]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
cmp byte [eax + 0x6c4], 0
je 0x4216c3
test ecx, ecx
je 0x4216e8
jmp 0x4216d9
test ecx, ecx
je 0x4216e8
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x4216e8
mov ecx, dword [ebx + 0x584]
mov eax, dword [ecx]
call dword [eax + 0x7c]
sub esi, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [ebx + 0x588]
test ecx, ecx
je 0x421712
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x421712
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
call dword [eax + 0x84]
sub edi, eax
mov dword [esp + 0x34], edi
mov ecx, dword [ebx + 0x588]
mov edx, esi
sub edx, dword [esp + 0x28]
mov eax, edi
sub eax, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x42174c
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x42174c
mov eax, dword [ebx + 0x588]
mov eax, dword [eax + 0x554]
add dword [esp + 0x38], eax
xor edi, edi
mov edx, edi
mov eax, edi
mov ecx, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
cmp dword [ebx + 0x558], edi
jle 0x4218bd
mov eax, dword [ebx + 0x554]
mov edi, dword [eax + ecx*4]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0xf4]
test al, al
je 0x42189c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x120]
test al, al
jne 0x42189c
push dword [esp + 0x20]
mov eax, dword [edi]
lea ecx, [esp + 0x68]
push dword [esp + 0x3c]
push ecx
mov ecx, edi
call dword [eax + 0x140]
cmp dword [esp + 0x68], 0
jne 0x4217c5
inc dword [esp + 0x44]
jmp 0x421801
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
cmp dword [esp + 0x68], eax
jge 0x4217e3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x9c]
mov dword [esp + 0x68], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
cmp dword [esp + 0x68], eax
jle 0x421801
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
mov dword [esp + 0x68], eax
mov eax, dword [edi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call dword [eax + 0x6c]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
lea esi, [eax + 0xc]
mov eax, dword [edi]
call dword [eax + 0x6c]
mov ecx, dword [esi]
add ecx, dword [esp + 0x68]
add ecx, dword [eax + 4]
add dword [esp + 0x14], ecx
lea ecx, [esp + 0x7c]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x6c]
xor eax, eax
mov ecx, edi
cmp dword [esp + 0x64], eax
cmovg eax, dword [esp + 0x64]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
call dword [eax + 0x8c]
cmp dword [esp + 0x64], eax
jge 0x421862
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x94]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
jle 0x421884
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x94]
mov ecx, eax
mov dword [esp + 0x64], ecx
cmp dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x10]
cmovg ecx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
jmp 0x4218a0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebx + 0x558]
jl 0x421774
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
lea ecx, [eax - 1]
mov eax, dword [ebx + 0x570]
imul eax, ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x6c0]
add edx, eax
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x4219af
add ecx, 0x6c0
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
mov dword [esp + 0x48], edi
test edi, edi
je 0x4219ab
lea ecx, [edi + 0x550]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jle 0x4219ab
mov eax, dword [edi]
mov ecx, esi
sub ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
push esi
push ecx
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call dword [eax + 0x140]
cmp dword [eax], 0
jge 0x421938
and dword [esp + 0x1c], 0
jmp 0x421952
mov eax, dword [edi]
lea ecx, [esp + 0x7c]
push esi
push dword [esp + 0x50]
push ecx
mov ecx, edi
call dword [eax + 0x140]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x588]
test ecx, ecx
je 0x4219ab
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x4219ab
mov eax, dword [ebx + 0x588]
mov ecx, edi
mov ebx, dword [eax + 0x558]
mov eax, dword [edi]
call dword [eax + 0x50]
mov esi, eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x54]
push 1
sub esp, 0x10
sub eax, ebx
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 dword [esp + 0x68], eax
lea esi, [esp + 0x68]
mov eax, dword [ecx]
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 ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
xor esi, esi
and dword [esp + 0x4c], esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
test ecx, ecx
jle 0x4219d7
mov eax, edi
sub eax, edx
cdq
idiv ecx
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [ebx + 0x584]
test ecx, ecx
je 0x421a01
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x421a01
mov eax, dword [ebx + 0x584]
mov ecx, dword [esp + 0x18]
sub ecx, dword [eax + 0x558]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x588]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x421a33
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x421a33
mov eax, dword [ebx + 0x588]
mov edx, dword [esp + 0x28]
sub edx, dword [eax + 0x558]
mov dword [esp + 0x40], edx
and dword [esp + 0x48], esi
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [ebx + 0x558], ecx
jle 0x421c59
mov eax, dword [ebx + 0x554]
mov esi, dword [eax + ecx*4]
mov ecx, esi
mov dword [esp + 0x7c], esi
mov eax, dword [esi]
call dword [eax + 0xf4]
test al, al
je 0x421c40
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x120]
test al, al
je 0x421a89
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x24]
call dword [eax + 0x1f8]
jmp 0x421c40
mov eax, dword [esi]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call dword [eax + 0x6c]
sub edi, dword [esp + 0x70]
lea ecx, [esp + 0x64]
mov eax, dword [esi]
push edi
push dword [esp + 0x3c]
mov dword [esp + 0x28], edi
push ecx
mov ecx, esi
call dword [eax + 0x140]
cmp dword [esp + 0x68], 0
jne 0x421b21
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], eax
cmp ecx, dword [esp + 0x44]
jne 0x421ae3
mov eax, edi
sub eax, dword [esp + 0x78]
sub eax, dword [esp + 0x14]
push 0
pop ecx
cmovs eax, ecx
mov dword [esp + 0x68], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
cmp dword [esp + 0x68], eax
jge 0x421b01
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
mov dword [esp + 0x68], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
cmp dword [esp + 0x68], eax
jle 0x421b65
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x68], eax
jmp 0x421b65
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
cmp dword [esp + 0x68], eax
jge 0x421b3f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
mov dword [esp + 0x68], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jle 0x421b61
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov ecx, eax
mov dword [esp + 0x68], ecx
sub dword [esp + 0x14], ecx
mov eax, dword [esp + 0x38]
mov ecx, esi
sub eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
cmp dword [esp + 0x1c], eax
cmovg eax, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [esi]
call dword [eax + 0x8c]
cmp dword [esp + 0x64], eax
jge 0x421b9c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov edi, dword [esp + 0x64]
cmp edi, eax
jle 0x421bbe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov edi, eax
mov dword [esp + 0x64], edi
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x70]
mov dword [esp + 0x58], eax
lea eax, [edi + ecx]
add eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x68]
add eax, dword [esp + 0x70]
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
push 1
mov dword [esp + 0x64], eax
sub esp, 0x10
mov eax, dword [esi]
mov edi, esp
lea esi, [esp + 0x68]
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 + 0x78]
mov esi, dword [ebx + 0x570]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x20]
lea eax, [esi + edx]
add eax, ecx
add eax, dword [esp + 0x70]
add dword [esp + 0x18], eax
lea eax, [edx + ecx]
add eax, dword [esp + 0x70]
add dword [esp + 0x10], eax
lea eax, [esi + edx]
add eax, ecx
sub edi, eax
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebx + 0x558]
jl 0x421a49
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x570]
imul eax, dword [esp + 0x50]
mov ecx, dword [ebx + 0x588]
mov edi, dword [esp + 0x1c]
add esi, eax
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x3c]
test ecx, ecx
je 0x421d32
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
mov eax, esi
sub eax, dword [esp + 0x28]
cmp edi, eax
jle 0x421cf0
call edx
mov ecx, dword [ebx + 0x588]
test al, al
je 0x421cb1
mov eax, dword [esp + 0x28]
sub eax, esi
add eax, edi
push eax
call fcn.00444203
jmp 0x421d32
mov eax, dword [ecx]
push 1
call dword [eax + 0xf8]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x588]
sub eax, esi
add eax, edi
push eax
call fcn.00444203
mov ecx, dword [ebx + 0x588]
push 0
call fcn.0044424f
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
call dword [eax + 0x84]
sub dword [esp + 0x34], eax
jmp 0x421d32
call edx
test al, al
je 0x421d32
mov ecx, dword [ebx + 0x588]
push 0
mov eax, dword [ecx]
call dword [eax + 0xf8]
mov ecx, dword [ebx + 0x588]
push 0
call fcn.00444203
mov ecx, dword [ebx + 0x588]
push 0
call fcn.0044424f
mov ecx, dword [ebx + 0x588]
mov eax, dword [ecx]
call dword [eax + 0x84]
add dword [esp + 0x34], eax
mov ecx, dword [ebx + 0x6c0]
add ecx, 0x6c0
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x421d9e
mov eax, dword [ebx + 0x558]
mov dword [esp + 0x7c], eax
test eax, eax
jle 0x421d9e
mov eax, dword [ebx + 0x554]
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x50], eax
mov edx, dword [eax]
call dword [edx + 0x7c]
mov ecx, eax
test ecx, ecx
jle 0x421d9e
sub esi, dword [esp + 0x28]
mov eax, esi
cdq
idiv ecx
mov esi, eax
test esi, esi
jle 0x421d9e
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
call dword [edx + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
dec eax
mov ecx, dword [esp + 0x10]
cdq
idiv esi
inc eax
imul ecx, eax
jmp 0x421da2
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
lea esi, [esp + 0x28]
push ecx
push edi
sub esp, 0x10
mov ecx, 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 dword [eax + 0x1fc]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c7036
mov esp, ebp
pop ebp
ret 0x14