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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x5932e0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0x1b8]
push ebx
push esi
push edi
mov edi, dword [ecx]
mov ebx, edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ecx
test byte [edi + 0x44], 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], edi
jne 0x4b585c
mov eax, dword [ebx + 0x1c]
lea ecx, [edx + edx*4]
shl ecx, 4
mov dword [esp + 0x18], eax
add eax, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x14], eax
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x1c]
test eax, eax
je 0x4b53a1
cmp dword [ebx + 0x38], 0
jne 0x4b585c
cmp dword [eax + 0x10], 0
jne 0x4b585c
test dword [ebx + 8], 0x100
je 0x4b53b2
test eax, eax
jne 0x4b585c
mov esi, dword [edx]
test esi, esi
je 0x4b585c
test byte [ecx + 8], 1
jne 0x4b585c
mov edx, dword [ebp + 0xc]
test eax, eax
je 0x4b53e6
mov edi, dword [esp + 0x18]
cmp dword [edi], 1
mov edi, dword [esp + 0xc]
jg 0x4b585c
test edx, edx
jne 0x4b585c
cmp dword [ebx + 0x2c], 0
je 0x4b53f6
cmp dword [ecx + 0x2c], 0
jne 0x4b585c
test edx, edx
je 0x4b5404
cmp dword [ecx + 0x2c], 0
jne 0x4b585c
test eax, eax
je 0x4b541c
cmp dword [ebx + 0x20], 0
jne 0x4b585c
test byte [ebx + 8], 1
jne 0x4b585c
test dword [ecx + 8], 0x2000
jne 0x4b585c
mov eax, dword [esp + 0x14]
test byte [eax + 0x2c], 0x20
je 0x4b545b
mov dword [esp + 0x2c], 1
cmp esi, 1
jg 0x4b585c
test edx, edx
jne 0x4b585c
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], edx
jne 0x4b585c
cmp dword [ecx + 0x30], 0
lea esi, [ecx + 0x30]
je 0x4b54e2
cmp dword [ecx + 0x2c], 0
jne 0x4b585c
test edx, edx
jne 0x4b585c
test byte [ebx + 8], 1
jne 0x4b585c
mov eax, dword [esp + 0x18]
cmp dword [eax], 1
jne 0x4b585c
nop dword [eax]
test byte [ecx + 8], 9
jne 0x4b585c
mov edx, dword [ecx + 0x30]
test edx, edx
je 0x4b54ab
cmp byte [ecx + 4], 0x74
jne 0x4b585c
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 1
jl 0x4b585c
mov ecx, edx
test ecx, ecx
jne 0x4b5490
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4b54e2
mov edx, dword [eax]
test edx, edx
jle 0x4b54e2
add eax, 0x18
nop dword [eax]
cmp word [eax], 0
je 0x4b585c
inc ecx
add eax, 0x18
cmp ecx, edx
jl 0x4b54d0
mov eax, dword [esp + 0x14]
mov edx, 0x15
mov ecx, dword [esp + 0x20]
push 0
push 0
mov eax, dword [eax + 0x10]
push 0
mov dword [ecx + 0x1b8], eax
call fcn.00497ef0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x1b8], eax
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4b55a9
mov eax, dword [ebx + 0x30]
mov edx, ebx
mov edi, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x38]
mov ecx, dword [esp + 0xc]
push 0
mov dword [esp + 0x28], eax
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
call fcn.0048eb10
mov ecx, eax
mov dword [ebx + 0x38], esi
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x2c], edi
mov byte [ebx + 4], 0x74
test ecx, ecx
je 0x4b5585
mov dword [ecx + 0x30], eax
test eax, eax
je 0x4b5580
mov dword [eax + 0x34], ecx
mov dword [ecx + 0x34], ebx
mov eax, ecx
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x30], eax
cmp byte [edi + 0x49], 0
jne 0x4b5845
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4b5522
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x1c]
mov esi, eax
mov edx, dword [ecx + 0xc]
mov ecx, edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], esi
call fcn.004592d0
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [eax + 0x10]
call fcn.004592d0
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [eax + 0x14]
call fcn.004592d0
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x18]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
test edx, edx
je 0x4b5640
mov eax, dword [edx + 0x20]
cmp eax, 1
jne 0x4b562c
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x1c8]
mov dword [edx + 0x4c], eax
mov dword [ecx + 0x1c8], edx
jmp 0x4b5630
dec eax
mov dword [edx + 0x20], eax
mov dword [edi + 0x18], 0
nop word [eax + eax]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], eax
mov edi, dword [eax]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4b566a
mov eax, dword [esp + 0x14]
mov al, byte [eax + 0x2c]
mov byte [esp + 0x13], al
jmp 0x4b568d
mov ecx, dword [esp + 0xc]
xor edx, edx
push 0
push 0
call fcn.0049d850
mov ecx, eax
add esp, 8
mov dword [esp + 0x18], ecx
mov dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x4b582d
cmp edi, 1
jle 0x4b56c3
mov eax, dword [esp + 0x38]
mov edx, ecx
mov ecx, dword [esp + 0xc]
inc eax
push eax
lea eax, [edi - 1]
push eax
call fcn.0049d700
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x1c], ecx
mov dword [esp + 0x18], ecx
cmp byte [eax + 0x49], 0
jne 0x4b5831
jmp 0x4b56c7
mov eax, dword [esp + 0xc]
test edi, edi
jle 0x4b573f
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
add edi, 8
mov ebx, dword [esp + 0x3c]
add esi, 8
add edi, ecx
nop
mov edx, dword [edi + 0x38]
mov ecx, eax
call fcn.0049d560
movups xmm0, xmmword [esi]
push 0x50
push 0
movups xmmword [edi], xmm0
push esi
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x40], xmm0
mov eax, dword [esi + 0x30]
mov dword [esp + 0x34], eax
call fcn.00517340
mov eax, dword [esp + 0x18]
lea edi, [edi + 0x50]
add esp, 0xc
add esi, 0x50
sub ebx, 1
jne 0x4b56e0
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov al, byte [esp + 0x13]
mov byte [edx + ecx + 0x2c], al
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x4b5778
xor ecx, ecx
cmp dword [edx], ecx
jle 0x4b576e
lea eax, [edx + 0x18]
nop dword [eax + eax]
xor edi, edi
lea eax, [eax + 0x18]
mov word [eax - 0x18], di
inc ecx
cmp ecx, dword [edx]
jl 0x4b5760
mov dword [ebx + 0x2c], edx
mov dword [esi + 0x2c], 0
mov edx, dword [esi + 0x20]
test edx, edx
je 0x4b5793
mov ecx, dword [esp + 0xc]
push 0
push 0
call fcn.0048e300
add esp, 8
mov edi, eax
jmp 0x4b5795
xor edi, edi
cmp dword [esp + 0x2c], 0
jbe 0x4b57a7
mov edx, dword [esp + 0x28]
mov ecx, edi
call fcn.004b00d0
push dword [ebx + 0x20]
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.0048ddb0
add esp, 4
mov dword [ebx + 0x20], eax
cmp byte [edi + 0x49], 0
jne 0x4b57f9
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], eax
mov edx, ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [esi]
push 0
mov dword [esp + 0x5c], eax
call fcn.004b51c0
add esp, 4
mov eax, dword [esi + 8]
and eax, 1
or dword [ebx + 8], eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4b5813
mov dword [ebx + 0x38], eax
mov dword [esi + 0x38], 0
mov ebx, dword [ebx + 0x30]
mov esi, dword [esi + 0x30]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], esi
test ebx, ebx
jne 0x4b5640
mov eax, edi
jmp 0x4b5831
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x44]
test edx, edx
je 0x4b5845
push 1
mov ecx, eax
call fcn.004afbd0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret