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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [ecx + 0xf4]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, edx
mov dword [esp + 0x24], ecx
test byte [eax + 0x4c], 1
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], eax
jne 0x4d625b
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], eax
lea ecx, [ecx + ecx*8]
shl ecx, 3
mov dword [esp + 0x3c], ecx
add ecx, 8
add eax, ecx
cmp dword [edi + 0x44], 0
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x14]
jne 0x4d625b
cmp dword [ecx + 0x44], 0
jne 0x4d625b
mov eax, dword [ecx + 0x3c]
mov edx, dword [ecx + 0x20]
test eax, eax
je 0x4d61ff
cmp dword [edi + 0x3c], 0
jne 0x4d625b
test eax, eax
je 0x4d61ff
cmp dword [eax + 0x10], 0
jne 0x4d625b
test dword [edi + 4], 0x100
je 0x4d620c
test eax, eax
jne 0x4d625b
mov esi, dword [edx]
test esi, esi
je 0x4d625b
test byte [ecx + 4], 1
jne 0x4d625b
mov edx, dword [ebp + 0xc]
test eax, eax
je 0x4d6230
mov edi, dword [esp + 0x20]
cmp dword [edi], 1
mov edi, dword [esp + 0x2c]
jg 0x4d625b
test edx, edx
jne 0x4d625b
cmp dword [edi + 0x30], 0
je 0x4d623c
cmp dword [ecx + 0x30], 0
jne 0x4d625b
test edx, edx
je 0x4d6246
cmp dword [ecx + 0x30], 0
jne 0x4d625b
test eax, eax
je 0x4d6263
cmp dword [edi + 0x24], 0
jne 0x4d625b
test eax, eax
je 0x4d6263
mov eax, dword [edi + 4]
test al, 1
je 0x4d6266
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test dword [ecx + 4], 0x2000
jne 0x4d625b
mov edi, dword [esp + 0x18]
test byte [edi + 0x24], 0x20
mov edi, dword [esp + 0x2c]
je 0x4d62a0
mov dword [esp + 0x38], 1
cmp esi, 1
jg 0x4d625b
test edx, edx
jne 0x4d625b
mov eax, dword [ecx + 0x20]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], edx
jne 0x4d625b
mov eax, dword [edi + 4]
test al, 1
jne 0x4d625b
cmp dword [ecx + 0x34], 0
lea esi, [ecx + 0x34]
mov dword [esp + 0x14], esi
je 0x4d6315
cmp dword [ecx + 0x30], 0
jne 0x4d625b
test edx, edx
jne 0x4d625b
test al, 1
jne 0x4d625b
mov eax, dword [esp + 0x20]
cmp dword [eax], 1
jne 0x4d625b
test byte [ecx + 4], 9
jne 0x4d625b
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x4d62d6
cmp byte [ecx], 0x85
jne 0x4d625b
mov eax, dword [ecx + 0x20]
cmp dword [eax], 1
jl 0x4d625b
cmp dword [ecx + 0x44], 0
jne 0x4d625b
mov ecx, edx
test ecx, ecx
jne 0x4d62c4
mov esi, dword [edi + 0x30]
test esi, esi
je 0x4d6315
mov edx, dword [esi]
test edx, edx
jle 0x4d6315
xor eax, eax
cmp word [esi + eax + 0x14], 0
je 0x4d625b
inc ecx
add eax, 0x14
cmp ecx, edx
jl 0x4d6301
mov eax, dword [esp + 0x18]
mov edx, 0x15
mov esi, dword [esp + 0x24]
mov ecx, esi
push 0
push 0
mov eax, dword [eax + 8]
push 0
mov dword [esi + 0xf4], eax
call fcn.004b8240
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esi + 0xf4], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4d63eb
mov eax, dword [esp + 0x2c]
mov edx, eax
mov edi, dword [edi + 0x30]
push 0
mov ecx, dword [eax + 0x34]
mov esi, dword [eax + 0x3c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x30], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x3c], 0
call fcn.004ad060
mov ecx, dword [esp + 0x30]
add esp, 4
mov dword [ecx + 0x30], edi
mov edi, ecx
mov dword [ecx + 0x3c], esi
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x20], ecx
mov byte [edi], 0x85
test eax, eax
jne 0x4d63b4
mov eax, dword [esp + 0x14]
jmp 0x4d63c5
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x4d63c2
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], edi
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x34], eax
cmp byte [ecx + 0x51], 0
jne 0x4d67bf
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4d6357
jmp 0x4d63ef
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
mov esi, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov edx, dword [eax + 4]
test edx, edx
je 0x4d6414
call fcn.00476790
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 8]
test edx, edx
je 0x4d6428
mov ecx, dword [esp + 0x28]
call fcn.00476790
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4d643c
mov ecx, dword [esp + 0x28]
call fcn.00476790
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x10]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x14], 0
test edx, edx
je 0x4d6493
mov eax, dword [edx + 0x20]
cmp eax, 1
jne 0x4d6484
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x104]
mov dword [edx + 0x4c], eax
mov dword [ecx + 0x104], edx
jmp 0x4d6488
dec eax
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 0x10], 0
mov esi, dword [esi + 0x20]
mov edx, dword [edi + 0x20]
mov byte [esp + 0x13], 0
mov dword [esp + 0x40], esi
mov ecx, dword [esi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
test edx, edx
je 0x4d64b9
mov al, byte [eax + 0x24]
mov byte [esp + 0x13], al
jmp 0x4d652f
mov eax, dword [esp + 0x24]
push 0
push 0x50
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x38], eax
call fcn.00476a20
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x4d6759
push 0x48
lea eax, [esi + 8]
mov dword [esi + 4], 1
push 0
push eax
mov dword [esi], 1
call fcn.005cc450
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esi + 0x34], 0xffffffff
xor edx, edx
mov eax, dword [esi]
lea eax, [eax + eax*8]
lea esi, [esi + eax*8]
call fcn.004b9170
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [esi - 0x38], eax
mov dword [esi - 0x3c], 0
mov esi, dword [esp + 0x40]
mov dword [edi + 0x20], edx
cmp ecx, 1
jle 0x4d655e
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x28]
push eax
call fcn.004bdcb0
mov edx, eax
add esp, 8
mov dword [esp + 0x14], edx
test edx, edx
je 0x4d6759
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x20], edx
test ecx, ecx
jle 0x4d65cf
mov edi, dword [esp + 0x3c]
add esi, 8
add edi, 8
mov dword [esp + 0x30], ecx
add edi, edx
mov edx, dword [edi + 0x34]
mov ecx, dword [esp + 0x28]
call fcn.004bdb90
movups xmm0, xmmword [esi]
push 0x48
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
movq xmm0, qword [esi + 0x40]
movq qword [edi + 0x40], xmm0
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x40], eax
call fcn.005cc450
add esp, 0xc
lea edi, [edi + 0x48]
add esi, 0x48
sub dword [esp + 0x30], 1
jne 0x4d6572
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov al, byte [esp + 0x13]
mov byte [ecx + edx + 0x2c], al
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x4d661c
test dword [edi + 4], 0x400000
jne 0x4d661c
xor ecx, ecx
cmp dword [edx], ecx
jle 0x4d6612
lea eax, [edx + 0x14]
nop dword [eax + eax]
xor esi, esi
lea eax, [eax + 0x14]
mov word [eax - 0x14], si
inc ecx
cmp ecx, dword [edx]
jl 0x4d6600
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x30], edx
mov dword [eax + 0x30], 0
cmp dword [esp + 0x38], 0
mov esi, dword [eax + 0x24]
mov dword [eax + 0x24], 0
jbe 0x4d6638
mov edx, dword [esp + 0x34]
mov ecx, esi
call fcn.004d0970
test esi, esi
je 0x4d6660
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4d665d
push eax
push esi
mov esi, dword [esp + 0x2c]
mov edx, 0x2c
mov ecx, esi
call fcn.004ac0e0
add esp, 8
mov dword [edi + 0x24], eax
jmp 0x4d6664
mov dword [edi + 0x24], esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x51], 0
jne 0x4d66a7
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], eax
mov edx, edi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x1c]
push 0
mov dword [esp + 0x60], eax
call fcn.004d5fe0
add esp, 4
jmp 0x4d66ab
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
and eax, 0x100
or dword [edi + 4], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4d66c7
mov dword [edi + 0x3c], eax
mov dword [esi + 0x3c], 0
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4d673f
mov esi, dword [esp + 0x14]
add esi, 0x40
add esi, dword [esp + 0x3c]
nop word [eax + eax]
cmp dword [esi - 0x28], 0
je 0x4d672f
xorps xmm0, xmm0
mov dword [esp + 0x78], 0
movaps xmmword [esp + 0x60], xmm0
lea eax, [esi - 0x38]
mov edx, edi
movq qword [esp + 0x70], xmm0
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], 0x4d5530
mov dword [esp + 0x68], 0x43bc50
mov dword [esp + 0x78], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a8d20
mov eax, dword [esp + 0x20]
add esi, 0x48
sub eax, 1
mov dword [esp + 0x20], eax
jne 0x4d66e0
mov esi, dword [esp + 0x1c]
mov edi, dword [edi + 0x34]
mov esi, dword [esi + 0x34]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], esi
test edi, edi
jne 0x4d6493
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x80]
mov esi, dword [esp + 0x48]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
mov edx, esi
movq qword [esp + 0x90], xmm0
mov dword [esp + 0x98], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0x4b25c0
mov dword [esp + 0x88], 0x43bc50
call fcn.004a8d20
test esi, esi
je 0x4d67bf
mov ecx, dword [esp + 0x28]
mov edx, esi
push 1
call fcn.004d0490
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret