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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x513040]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
mov ebx, edx
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], edi
cmp dword [ebx + 0x44], eax
je 0x4da1ec
cmp dword [ebx + 0x34], eax
jne 0x4da1ec
test dword [ebx + 4], 0x100000
jne 0x4da1ec
cmp byte [edi + 0xe0], 2
jae 0x4da1ec
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4d9a7f
cmp dword [edi + 0x84], eax
jne 0x4d9a76
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x4d9a76
mov byte [edi + 0x17], 1
call fcn.00457d00
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [edi]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], ecx
push 0
push 0x40
test eax, eax
je 0x4d9ac6
mov ecx, eax
call fcn.0042f570
mov esi, eax
mov dword [esp + 0x28], esi
jmp 0x4d9ad1
call fcn.0042ee10
mov esi, eax
mov dword [esp + 0x28], eax
add esp, 8
test esi, esi
je 0x4da251
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x80], edi
xorps xmm0, xmm0
mov dword [esp + 0x84], 0x47c550
mov edx, ebx
movlpd qword [esp + 0x8c], xmm0
lea ecx, [esp + 0x80]
movlpd qword [esp + 0x94], xmm0
mov dword [esp + 0x88], fcn.00428740
call fcn.0046d670
test byte [ebx + 4], 8
mov dword [esp + 0x1c], esi
jne 0x4d9b8e
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x84], 0x4d99d0
mov dword [esp + 0x88], 0
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x4d9b8a
mov esi, dword [ebx]
add ebx, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
test esi, esi
jle 0x4d9b8a
mov dword [esp + 0x1c], eax
nop dword [eax]
mov edx, dword [ebx]
lea ecx, [esp + 0x80]
call fcn.0046d660
test eax, eax
jne 0x4d9b8a
dec esi
add ebx, 0x14
test esi, esi
jg 0x4d9b70
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 4]
xor edx, edx
mov esi, dword [esp + 0x14]
and eax, 0xfffffff7
or eax, 0x100000
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov ecx, edi
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 4], eax
push 1
push dword [esi + 8]
call fcn.004d97d0
push 1
push dword [esi + 0xc]
mov edx, eax
mov ecx, edi
call fcn.004d97d0
mov esi, eax
add esp, 0x10
mov dword [esp + 0x18], esi
test esi, esi
je 0x4d9c9f
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4d9c9f
mov edx, dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x34], edx
cmp eax, edx
jg 0x4d9c9f
mov dword [esi], eax
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x4d9c99
cmp eax, dword [edx]
jne 0x4d9c99
xor ebx, ebx
test eax, eax
jle 0x4d9c77
mov eax, dword [esp + 0x18]
lea ecx, [esi + 8]
sub eax, edx
mov dword [esp + 0x10], ecx
lea esi, [edx + 0x10]
mov dword [esp + 0x44], eax
mov al, byte [eax + esi]
cmp al, byte [esi]
jne 0x4d9c91
mov edx, dword [ecx]
xor ecx, ecx
push 0xffffffffffffffff
push dword [esi - 8]
call fcn.0047ba00
add esp, 8
test eax, eax
jne 0x4d9c91
mov eax, dword [esp + 0x18]
inc ebx
mov ecx, dword [esp + 0x10]
add esi, 0x14
add ecx, 0x14
mov dword [esp + 0x10], ecx
cmp ebx, dword [eax]
mov eax, dword [esp + 0x44]
jl 0x4d9c33
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov edx, dword [ebx + 0x30]
jmp 0x4d9c7b
mov ebx, dword [esp + 0xc]
test edx, edx
je 0x4d9c88
mov ecx, dword [esp + 0x24]
call fcn.00473e80
mov dword [ebx + 0x30], 0
jmp 0x4d9c99
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x34]
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x50]
mov eax, dword [edi + 0x2c]
xor edx, edx
xorps xmm0, xmm0
mov dword [esp + 0x78], 0
movlpd qword [esp + 0x70], xmm0
mov dword [ecx + 0x30], eax
add dword [edi + 0x2c], 4
mov eax, dword [esp + 0x30]
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 0x4d9570
mov dword [esp + 0x6c], 0x4d97a0
mov dword [esp + 0x7c], esi
test ebx, ebx
je 0x4d9d33
mov esi, dword [ebx]
add ebx, 8
test esi, esi
jle 0x4d9d33
nop dword [eax]
mov edx, dword [ebx]
lea ecx, [esp + 0x64]
call fcn.0046d660
test eax, eax
jne 0x4d9d27
dec esi
add ebx, 0x14
test esi, esi
jg 0x4d9d10
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov esi, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x50]
movlpd qword [esp + 0x70], xmm0
mov ebx, dword [ebx + 0x30]
mov dword [esp + 0x78], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 0x4d9570
mov dword [esp + 0x6c], 0x4d97a0
mov dword [esp + 0x7c], eax
test ebx, ebx
je 0x4d9daf
mov esi, dword [ebx]
add ebx, 8
test esi, esi
jle 0x4d9daf
mov edx, dword [ebx]
lea ecx, [esp + 0x64]
call fcn.0046d660
test eax, eax
jne 0x4d9da7
dec esi
add ebx, 0x14
test esi, esi
jg 0x4d9d90
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x4d9db7
mov eax, dword [edx]
jmp 0x4d9db9
xor eax, eax
push 0
push dword [ecx + 8]
mov dword [ecx + 0x4c], eax
mov ecx, edi
call fcn.004d97d0
mov esi, dword [esp + 0x1c]
mov edx, eax
push 0
mov ecx, edi
push dword [esi + 0xc]
call fcn.004d97d0
mov edx, dword [esp + 0x24]
add esp, 0x10
mov esi, eax
mov dword [esp + 0x10], edx
mov ebx, edx
nop dword [eax]
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx + 0x2c]
test dword [eax + 4], 0x100000
je 0x4d9ead
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x50]
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x78], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], 0x4d9570
mov dword [esp + 0x6c], 0x4d97a0
mov dword [esp + 0x7c], eax
test ecx, ecx
je 0x4d9e93
mov ebx, dword [ecx]
lea eax, [ecx + 8]
mov dword [esp + 0x34], eax
test ebx, ebx
jle 0x4d9e8f
mov edi, eax
nop word [eax + eax]
mov edx, dword [edi]
lea ecx, [esp + 0x64]
call fcn.0046d660
test eax, eax
jne 0x4d9e87
dec ebx
add edi, 0x14
test ebx, ebx
jg 0x4d9e70
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
test esi, esi
je 0x4d9ea2
mov eax, dword [esi]
mov dword [ebx + 0x50], eax
mov byte [ebx + 0x60], 1
jmp 0x4d9ecb
xor eax, eax
mov byte [ebx + 0x60], 1
mov dword [ebx + 0x50], eax
jmp 0x4d9ecb
test esi, esi
je 0x4d9eb5
mov eax, dword [esi]
jmp 0x4d9eb7
xor eax, eax
push 0
push ecx
mov edx, esi
mov dword [ebx + 0x50], eax
mov ecx, edi
call fcn.004d97d0
add esp, 8
mov esi, eax
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x4d9f34
mov ecx, dword [esp + 0x24]
push 0
push 0
call fcn.00472d20
add esp, 8
mov edx, eax
test esi, esi
jne 0x4d9ef3
mov ecx, dword [edi]
call fcn.00473940
mov esi, eax
jmp 0x4d9f34
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esp + 0x34], ecx
cmp dword [esi + 4], ecx
jge 0x4d9f12
mov ecx, dword [edi]
push edx
mov edx, esi
call fcn.004739b0
add esp, 4
mov esi, eax
jmp 0x4d9f34
movups xmm0, xmmword [0x505b68]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4]
mov eax, dword [esp + 0x34]
mov dword [esi], eax
mov eax, dword [0x505b78]
movups xmmword [ecx + 8], xmm0
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], edx
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x34], eax
inc dword [edi + 0x30]
mov eax, dword [edi + 0x30]
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x70], ecx
jg 0x4d9f6b
push 0
push edx
push 0
mov edx, 0x4b
mov ecx, eax
call fcn.00457f50
add esp, 0xc
jmp 0x4d9fa4
mov edi, dword [esp + 0x2c]
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x6c], eax
mov eax, edi
mov edi, dword [esp + 0x28]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [ebx + 0x24]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x4d9df0
test esi, esi
jne 0x4d9fed
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push esi
push eax
mov edx, 0x9c
mov dword [esp + 0x3c], 0x4fe48c
mov dword [esp + 0x40], 1
call fcn.00471e90
mov ecx, dword [edi]
add esp, 8
mov edx, eax
call fcn.00473940
mov esi, eax
push 0
push 0
push dword [esp + 0x20]
mov edx, esi
mov ecx, edi
push dword [esp + 0x54]
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x48]
call fcn.004aa320
mov ecx, dword [edi]
add esp, 0x1c
mov ebx, eax
mov dword [esp + 0x28], ebx
push 0
push 0x50
call fcn.0042f570
mov esi, eax
add esp, 8
test esi, esi
jne 0x4da053
mov eax, dword [esp + 0xc]
mov dword [eax + 0x20], esi
mov esi, dword [esp + 0x1c]
test ebx, ebx
je 0x4da1a7
mov ecx, dword [esp + 0x24]
mov edx, ebx
push 1
call fcn.004aa1f0
add esp, 4
jmp 0x4da1a7
push 0x48
lea eax, [esi + 8]
mov dword [esi + 4], 1
push 0
push eax
mov dword [esi], 1
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi]
lea eax, [eax + eax*8]
mov dword [esi + eax*8 - 0x38], 0
mov dword [esi + eax*8 - 0x3c], 0
mov dword [ecx + 0x20], esi
mov dword [esi + 0x1c], ebx
mov eax, dword [ecx + 0x20]
or dword [eax + 0x30], 8
mov ecx, dword [ecx + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x40], ecx
test ecx, ecx
je 0x4da0f2
xor ebx, ebx
cmp dword [ecx], ebx
jle 0x4da0ee
lea esi, [ecx + 0x34]
mov dword [esp + 0x3c], eax
nop dword [eax + eax]
cmp dword [esi], 0
jge 0x4da0e2
mov eax, dword [edi + 0x2c]
mov dword [esi], eax
inc dword [edi + 0x2c]
mov edx, dword [esi - 0x18]
test edx, edx
je 0x4da0e2
mov edx, dword [edx + 0x20]
mov ecx, edi
call fcn.0048d770
mov ecx, dword [esp + 0x40]
inc ebx
add esi, 0x48
cmp ebx, dword [ecx]
jl 0x4da0c0
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x28]
or dword [ebx + 4], 0x8000040
mov edx, ebx
push 0x40
mov ecx, edi
call fcn.004aea20
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x4c]
and eax, 8
or dword [ebx + 4], eax
test ecx, ecx
jne 0x4da121
mov ecx, 7
jmp 0x4da1a9
movups xmm0, xmmword [ecx]
mov edx, dword [esp + 0x20]
mov esi, ecx
mov eax, dword [esp + 0xc]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
lea ecx, [esp + 0x80]
movups xmmword [edx + 0x30], xmm0
or dword [edx + 0x1c], 0x4000
mov eax, dword [eax + 0x20]
xorps xmm0, xmm0
mov dword [eax + 0x18], edx
mov edx, ebx
mov dword [esp + 0x80], 0
movlpd qword [esp + 0x90], xmm0
mov dword [esp + 0x98], 0
mov dword [esp + 0x84], 0x4d99a0
mov dword [esp + 0x88], 0x46d850
mov dword [esp + 0x8c], 0x46d860
call fcn.0046d670
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov edx, 7
cmp byte [eax + 0x57], 0
mov eax, dword [0x513290]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
test eax, eax
je 0x4da201
push 0x12c
call eax
mov ecx, dword [edi]
add esp, 4
test eax, eax
je 0x4da203
call fcn.0042f840
test esi, esi
je 0x4da1e8
mov ecx, dword [edi]
mov edx, esi
call fcn.0042f0e0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
push 0
push 0xc
test ecx, ecx
je 0x4da212
call fcn.0042f570
jmp 0x4da217
call fcn.0042ee10
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4da1db
mov eax, dword [edi + 0x90]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x90], ecx
mov dword [ecx + 4], esi
mov dword [ecx + 8], fcn.0042f240
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4da26d
mov eax, dword [eax + 0x10c]
test eax, eax
je 0x4da26d
inc dword [eax + 0x28]
mov dword [eax + 0xc], 7
mov ecx, dword [esp + 0x9c]
mov eax, 7
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret