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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x51e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
je 0x4283f1
mov eax, dword [edi + 0x70]
mov eax, dword [eax + 0x4f4]
test byte [eax + 0x10c], 1
jne 0x4283dc
mov eax, dword [edi + 0x74]
mov eax, dword [eax + 0xc8]
cmp dword [eax + 0x34], 0
je 0x4283dc
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 2
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ebx
nop dword [eax]
dec eax
push esi
mov dword [ebp - 0x7c], eax
call ecx
mov ecx, dword [edi + 0x40]
or edx, 0xffffffff
xor esi, esi
test ecx, ecx
je 0x4283d6
mov eax, dword [ecx + 0x40]
shr eax, 8
dec eax
movzx eax, al
cmp eax, 5
je 0x4281ea
cmp eax, 0xff
je 0x4281ea
mov eax, dword [ecx + 0x3c]
cmp eax, edx
cmovae eax, edx
cmovb esi, ecx
mov edx, eax
mov eax, dword [ecx + 0xc]
mov ecx, eax
test eax, eax
jne 0x4281c7
test esi, esi
je 0x4283d6
mov eax, dword [ebp - 0x64]
cmp edx, dword [eax + 0x18]
ja 0x4283d6
cmp dword [eax + 0x14], 0
mov ecx, dword [edi + 0x5c]
je 0x42824c
call fcn.00409ee0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x513d40]
mulsd xmm0, qword [0x513a38]
mulsd xmm0, qword [0x513c38]
call fcn.004f3af0
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 0x18]
add ecx, 0x4b0
jmp 0x428286
call fcn.00409ee0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x513d40]
mulsd xmm0, qword [0x513a38]
mulsd xmm0, qword [0x513c18]
call fcn.004f3af0
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx + 0x18]
add ecx, 0x708
add eax, ecx
mov dword [esi + 0x3c], eax
mov ecx, dword [edx + 0x18]
lea eax, [ecx + 0x78]
cmp dword [esi + 0x50], eax
jbe 0x428299
mov dword [esi + 0x50], ecx
movups xmm0, xmmword [esi]
lea eax, [edi + 4]
push eax
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [ebp - 0x20], xmm0
movq xmm0, qword [esi + 0x50]
movq qword [ebp - 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
call ebx
mov eax, dword [edi + 0x70]
mov esi, dword [eax + 0x4a8]
lea ebx, [esi + 4]
push ebx
call dword [ebp - 0x6c]
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x20
push 0x77fc87de
call fcn.004088a0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x42831d
cmp dword [eax + 0x68], 0
jne 0x42836e
cmp dword [eax + 0x6c], 3
je 0x42836e
cmp dword [eax + 0x70], 0
jne 0x42836e
push ebx
mov ebx, dword [ebp - 0x68]
call ebx
test byte [ebp - 0x2c], 0x40
jne 0x428348
push 0
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
call fcn.00482740
test eax, eax
je 0x428348
push ecx
push eax
lea eax, [ebp - 0x4c]
mov ecx, edi
push eax
call fcn.004284f0
lea esi, [edi + 4]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x6c]
test eax, eax
jne 0x4281b0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp - 0x68]
call ebx
push ecx
mov ecx, dword [edi + 0x70]
lea eax, [ebp - 0x4c]
push 0
push 0
push eax
mov ecx, dword [ecx + 0x49c]
call fcn.004a7df0
mov eax, dword [edi + 0x70]
lea esi, [edi + 4]
mov eax, dword [eax + 0x49c]
mov eax, dword [eax + 8]
cmp dword [eax + 0x20], 0
jne 0x42834b
push esi
call dword [ebp - 0x6c]
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004294b0
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4283c3
push esi
call ebx
jmp 0x42834b
push eax
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0042cfe0
push esi
call ebx
jmp 0x42834b
mov eax, dword [ebp - 0x80]
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3878
mov esp, ebp
pop ebp
ret 8