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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0x64], eax
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edx + 0x40]
shr eax, 8
dec eax
mov dword [esp + 0x1c], edi
movzx eax, al
mov dword [esp + 0x2c], edx
mov dword [esp + 8], eax
cmp eax, 5
je 0x482c24
cmp eax, 0xff
je 0x482c24
mov ecx, dword [edi + 0x10]
lea esi, [edx + 0x14]
mov dword [esp + 0x28], esi
mov eax, dword [ecx + 0x90]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push dword [ecx + 0x9c]
lea eax, [ecx + 0x10]
mov ecx, dword [edi + 0xc]
push eax
push esi
call fcn.004a73f0
test eax, eax
jne 0x482c24
mov ecx, dword [edi + 0x10]
push eax
push dword [esp + 0x10]
push dword [ecx + 0x9c]
call fcn.004ace30
test eax, eax
jne 0x482c24
cmp dword [esp + 8], 1
je 0x482c39
mov eax, dword [edi + 0x10]
push ecx
mov ecx, dword [edi + 8]
push dword [eax + 0x9c]
mov ecx, dword [ecx + 0xc8]
push esi
call fcn.004a4d30
cmp dword [esp + 8], 0
jne 0x482c24
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x50]
add eax, 0x13c680
cmp eax, dword [edi + 0x18]
jb 0x482c24
mov ecx, dword [edi]
lea eax, [esp + 0x30]
push eax
push esi
mov ecx, dword [ecx + 0x4e0]
call fcn.0046ced0
push dword [esp + 0xc]
mov ecx, dword [edi + 0x10]
push esi
call fcn.004ad560
test eax, eax
jne 0x48284a
mov dword [esp + 8], 1
jmp 0x482a13
cmp dword [edi + 0x14], 0
je 0x4829e7
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x4829d2
test eax, eax
je 0x4829d2
mov eax, dword [ecx + 0x98]
lea edx, [esp + 8]
push edx
push dword [ecx + 0xa4]
mov dword [esp + 0x10], eax
lea eax, [ecx + 0x50]
mov ecx, dword [ecx + 8]
push eax
push esi
call fcn.004a73f0
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x4828c7
mov eax, dword [ecx + 0xa4]
test eax, eax
je 0x4828c7
mov edx, dword [esp + 8]
mov dword [esp + 0x20], edx
cmp edx, 0x20
jb 0x4828c7
mov dword [eax], 0x7d6
mov eax, dword [eax + 4]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x20]
cmp edx, eax
je 0x4828f9
mov esi, dword [ecx + 0xa4]
push 0x198
push 0
mov dword [esp + 0x28], 0x1a0
lea eax, [esi + 8]
push eax
call fcn.004d6ed0
mov dword [esi], 0x7d6
add esp, 0xc
mov dword [esi + 4], 0x10
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xa4]
mov dword [esp + 0x18], ecx
mov dword [ecx], 0x7d6
lea ecx, [esp + 0x24]
push ecx
push ecx
push dword [eax + 0x9c]
call fcn.004abd50
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x4c8]
mov eax, dword [esp + 0x24]
add eax, 4
mov dword [esp + 0x14], ecx
push eax
mov dword [esp + 0xc], eax
call fcn.0047ac20
test eax, eax
je 0x482951
push dword [esp + 8]
mov ecx, dword [esp + 0x18]
call fcn.0047acd0
mov eax, dword [esp + 8]
mov edx, 8
mov eax, dword [eax]
lea ecx, [eax - 0x2a2d]
add eax, 0x78
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
add ecx, 0x20
cmp eax, edx
cmovb edx, eax
test edx, edx
je 0x4829b3
mov edi, dword [esp + 0x24]
mov eax, dword [ecx + 4]
test eax, eax
je 0x482997
cmp dword [esp + 8], eax
ja 0x482997
cmp eax, dword [esp + 0x14]
jbe 0x4829a7
movups xmm0, xmmword [edi]
movups xmmword [ecx], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ecx + 0x10], xmm0
add ecx, 0x18
sub edx, 1
jne 0x482984
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push dword [esp + 0x20]
push dword [eax + 0xa4]
lea ecx, [eax + 0x50]
push ecx
mov ecx, dword [eax + 8]
push esi
call fcn.004a72a0
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x10]
push eax
push esi
call fcn.004ad560
neg eax
sbb eax, eax
inc eax
mov dword [esp + 8], eax
jmp 0x482a13
mov esi, dword [edi + 0x18]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x10]
sub esi, 0x15180
push ecx
push dword [eax + 0x9c]
call fcn.004abd50
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 2
mov dword [eax + 4], esi
mov edx, dword [esp + 0x38]
mov ecx, 0x14
add edx, dword [esp + 0x3c]
mov eax, edi
add eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
add eax, 3
add eax, ecx
cmp edx, eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x10]
sbb esi, esi
push ecx
and esi, 0xfffffffd
add esi, 3
push dword [eax + 0x9c]
call fcn.004abd50
mov ecx, dword [esp + 0x14]
mov eax, 3
cmp word [ecx + 0x14], 0xa
jb 0x482a72
movss xmm0, dword [0x513a6c]
comiss xmm0, dword [ecx + 8]
cmova esi, eax
test byte [ecx + 0x16], 1
je 0x482a90
mov edx, dword [esp + 0x2c]
mov eax, 0xc22e4507
mul dword [edx + 0x50]
shr edx, 0xe
imul eax, edx, 0x5460
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x9c]
mov eax, dword [ecx + 4]
add eax, 0x14
lea eax, [ecx + eax*2]
mov dword [esp + 0x10], eax
test eax, eax
je 0x482b2d
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc4]
mov dword [esp + 0x1c], eax
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call fcn.0044df30
cmp dword [esp + 0x24], 0
jne 0x482b13
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.0044df90
cmp dword [esp + 0x24], 0
jne 0x482b13
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [edi + 0x14]
jmp 0x482b25
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 8]
push 1
push dword [esp + 0x18]
push dword [esp + 0x30]
mov ecx, dword [ecx + 0xc4]
push eax
call fcn.0044da20
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
je 0x482b6f
mov eax, dword [edi + 8]
push dword [esp + 0x28]
push dword [esp + 0x14]
mov ecx, dword [eax + 0xc4]
call fcn.0044dda0
test eax, eax
mov eax, 3
cmovne esi, eax
mov eax, dword [edi]
cmp dword [eax + 0x290], 0
je 0x482b92
mov eax, dword [esp + 0x2c]
test byte [eax + 0x34], 0x20
je 0x482b92
mov eax, dword [esp + 0x14]
cmp word [eax + 0x14], 0x64
jbe 0x482b92
or esi, 5
test esi, esi
jne 0x482de2
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x482bc3
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0xc]
mov ecx, dword [edi + 0xc]
push esi
push dword [eax + 0x9c]
add eax, 0x10
push eax
push dword [esp + 0x34]
call fcn.004a72a0
jmp 0x482bcb
test eax, eax
je 0x482c24
mov esi, dword [esp + 0xc]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 8]
push esi
push dword [eax + 0x9c]
mov ecx, dword [ecx + 0xc0]
call fcn.0042fb00
mov ecx, dword [edi + 0x1c]
push esi
mov dword [ecx], 0x10
mov dword [ecx + 4], 4
mov dword [ecx + 8], 2
mov eax, dword [edi + 0x10]
push dword [eax + 0x9c]
lea eax, [ecx + 0xc]
push eax
call fcn.004d6950
mov ecx, dword [edi]
lea eax, [esi + 0xc]
add esp, 0xc
push eax
push dword [edi + 0x1c]
mov ecx, dword [ecx + 0x4dc]
call fcn.0045a1d0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0xc8]
mov dword [esp + 8], ecx
cmp dword [ecx + 0x34], 0
je 0x482c24
mov eax, dword [eax + 0xcc]
cmp dword [eax + 0xa0], 0
je 0x482c24
test esi, esi
je 0x482daf
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x9c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x482daf
lea edi, [ecx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 8]
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x24]
push esi
call fcn.004a5310
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x482daf
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
mov eax, dword [esi + 0x10]
push dword [eax + 0x9c]
call fcn.004abd50
mov edi, dword [esp + 0x14]
test edi, edi
je 0x482dc9
xor eax, eax
test byte [edi + 0x16], 1
je 0x482de0
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x18]
mov eax, dword [eax + 0x9c]
mov eax, dword [eax + ecx - 0x54]
add eax, 0x72b280
cmp eax, edx
jb 0x482c24
mov dword [edi + 4], edx
xorps xmm0, xmm0
mov dword [edi + 8], 0
mov eax, dword [esi]
mov ecx, dword [eax + 0x4a0]
lea eax, [esp + 0x40]
push ecx
movaps xmmword [esp + 0x44], xmm0
movq qword [esp + 0x54], xmm0
mov ecx, dword [ecx + 4]
push eax
push 0x4af040
push dword [esp + 0x34]
mov ecx, dword [ecx + 0x49c]
call fcn.004a7580
mov eax, dword [esp + 0x40]
mov dword [edi + 0xc], eax
test byte [edi + 0x16], 1
je 0x482d4b
mov eax, dword [esp + 0x40]
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], 0
xor eax, eax
mov word [edi + 0x14], ax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0xc]
push edi
push dword [eax + 0x9c]
mov ecx, dword [ecx + 0xc0]
call fcn.0042fb00
mov ecx, dword [esi + 0x1c]
push edi
mov dword [ecx], 0x10
mov dword [ecx + 4], 4
mov dword [ecx + 8], 2
mov eax, dword [esi + 0x10]
push dword [eax + 0x9c]
lea eax, [ecx + 0xc]
push eax
call fcn.004d6950
mov ecx, dword [esi]
lea eax, [edi + 0xc]
add esp, 0xc
push eax
push dword [esi + 0x1c]
jmp 0x482c19
mov esi, 3
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc
mov esi, eax
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 0xc