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

Disassembly:
sub esp, 0x3fc
mov eax, dword [0x55c640]
xor eax, esp
mov dword [esp + 0x3f8], eax
mov edx, dword [esp + 0x404]
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
mov esi, dword [esp + 0x40c]
push edi
mov dword [esp + 0x28], edx
mov byte [esp + 0x24], 0
mov edi, dword [esi + 4]
mov ebx, dword [edi + 0x290]
cmp dword [ebx + 0x5b0], 0xffff
je 0x4d80bc
cmp dword [ebx + 0x48c], 0
je 0x4d80bc
test ebp, ebp
je 0x4d80c1
xor eax, eax
cmp ebp, dword [ebx + 0x490]
ja 0x4d80ac
mov eax, dword [ebx + 0x48c]
movzx eax, word [eax + ebp*2]
mov ebp, eax
test eax, eax
jne 0x4d80c1
mov eax, 6
jmp 0x4d8963
cmp ebp, dword [ebx + 0xc]
jae 0x4d80b2
mov ecx, dword [esp + 0x41c]
test ecx, 0x400
je 0x4d80da
or ecx, 3
mov dword [esp + 0x41c], ecx
mov dword [esi + 0xa4], 0x10000
mov dword [esi + 0xa8], 0x10000
test edx, edx
je 0x4d82b3
mov eax, dword [edx + 0x10]
mov dword [esi + 0xa4], eax
mov eax, dword [edx + 0x14]
mov dword [esi + 0xa8], eax
mov eax, dword [edx]
mov ecx, dword [eax + 0x68]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0x2c]
cmp ecx, 0xffffffff
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x41c]
je 0x4d82b3
mov edx, dword [eax + 0x214]
cmp dword [edx + 0x60], 0
je 0x4d82b3
test cl, 8
jne 0x4d82b3
lea eax, [esp + 0x3d8]
push eax
lea eax, [esi + 0x4c]
push eax
push dword [esp + 0x20]
mov eax, dword [edx + 0x48]
push ecx
push ebp
push dword [esp + 0x24]
push edi
call eax
add esp, 0x1c
test eax, eax
jne 0x4d82ac
movsx ecx, word [esp + 0x3dc]
movsx edx, word [esp + 0x3de]
mov dword [esi + 0x6c], eax
movzx eax, word [esp + 0x3da]
shl eax, 6
mov dword [esi + 0x18], eax
movzx eax, word [esp + 0x3d8]
movsx ebx, word [esp + 0x3e2]
shl eax, 6
mov dword [esi + 0x1c], eax
mov eax, ecx
shl eax, 6
mov dword [esi + 0x20], eax
mov eax, edx
shl eax, 6
mov dword [esi + 0x24], eax
movzx eax, word [esp + 0x3e0]
shl eax, 6
mov dword [esi + 0x28], eax
mov eax, ebx
shl eax, 6
mov dword [esi + 0x2c], eax
movsx eax, word [esp + 0x3e4]
shl eax, 6
mov dword [esi + 0x30], eax
movzx eax, word [esp + 0x3e6]
shl eax, 6
test byte [esp + 0x41c], 0x10
mov dword [esi + 0x34], eax
mov dword [esi + 0x48], 0x62697473
je 0x4d8202
movsx eax, word [esp + 0x3e4]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], eax
jmp 0x4d8208
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], edx
mov eax, dword [edi + 0x214]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov eax, dword [eax + 0x70]
push ebp
push 0
push edi
call eax
movzx eax, word [esp + 0x30]
add esp, 0x14
mov dword [esi + 0x38], eax
cmp byte [edi + 0x124], 0
je 0x4d826a
cmp word [edi + 0x14a], 0
jbe 0x4d826a
mov eax, dword [edi + 0x214]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov eax, dword [eax + 0x70]
push ebp
push 1
push edi
call eax
movzx eax, word [esp + 0x30]
add esp, 0x14
mov dword [esi + 0x3c], eax
xor eax, eax
jmp 0x4d8963
mov eax, 0xffff
cmp word [edi + 0x16c], ax
je 0x4d8292
movsx eax, word [edi + 0x1b4]
movsx ecx, word [edi + 0x1b2]
sub ecx, eax
xor eax, eax
mov dword [esi + 0x3c], ecx
jmp 0x4d8963
movsx eax, word [edi + 0xde]
movsx ecx, word [edi + 0xdc]
sub ecx, eax
xor eax, eax
mov dword [esi + 0x3c], ecx
jmp 0x4d8963
mov ecx, dword [esp + 0x41c]
test ecx, 0x4000
jne 0x4d80b2
cmp dword [ebx + 0x768], 0
je 0x4d842b
lea eax, [ebx + 0xb6c]
push ebp
push eax
call fcn.004d6730
movzx ecx, al
add esp, 8
cmp ecx, dword [ebx + 0x768]
jb 0x4d82ef
mov al, byte [ebx + 0x768]
dec al
mov edx, dword [ebx + 0x570]
movzx eax, al
mov dword [esp + 0x20], edx
lea ecx, [ebx + eax*4]
mov eax, dword [ecx + 0x76c]
movdqu xmm0, xmmword [eax + 0x30]
mov edx, dword [eax + 0x44]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x20]
movdqu xmmword [esp + 0x3e8], xmm0
mov eax, dword [ecx + 0x76c]
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
cmp edx, eax
je 0x4d836e
push eax
push edx
push dword [esi + 0xa4]
call fcn.004fb7f0
push dword [esp + 0x20]
mov dword [esi + 0xa4], eax
push dword [esp + 0x30]
push dword [esi + 0xa8]
call fcn.004fb7f0
add esp, 0x18
mov dword [esi + 0xa8], eax
mov byte [esp + 0x24], 1
mov ecx, dword [esp + 0x41c]
xor eax, eax
mov dword [esi + 0x48], 0x6f75746c
mov dword [esi + 0x6c], eax
mov eax, ecx
shr eax, 1
not al
and eax, 0xffffff01
mov byte [esp + 0x10], al
mov dword [esp + 0x18], eax
mov byte [esi + 0xa0], al
mov al, cl
not al
and al, 1
mov byte [esi + 0xa1], al
mov eax, ecx
sar eax, 0x10
and eax, 0xf
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x3c]
push esi
push dword [esp + 0x34]
push edi
push eax
call fcn.004d6210
movzx eax, byte [esp + 0x33d]
add esp, 0x18
test dword [esp + 0x41c], 0x100
mov ecx, 1
mov byte [esp + 0x76], 0
cmovne eax, ecx
mov byte [esp + 0x325], al
mov eax, dword [edi + 0x80]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4d8455
mov eax, dword [ecx]
lea edx, [esp + 0x3d8]
push edx
push ebp
push dword [ecx + 4]
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x3e8]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3d8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
jmp 0x4d847c
movdqu xmm0, xmmword [ebx + 0x55c]
movdqu xmmword [esp + 0x3e8], xmm0
mov eax, dword [ebx + 0x574]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x578]
mov dword [esp + 0x30], eax
jmp 0x4d8375
mov eax, dword [edi + 0x290]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
add eax, 0x498
push ecx
push ebp
push eax
call fcn.004d6f70
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x4d895f
push ebp
push dword [esp + 0x2c]
lea eax, [esp + 0x3c]
push eax
call fcn.004d62d0
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4d895f
push dword [esp + 0x1c]
lea eax, [esp + 0x38]
push dword [esp + 0x18]
push eax
call fcn.004d2110
add esp, 0xc
mov dword [esp + 0x20], eax
cmp al, 0xa4
jne 0x4d84ed
push dword [esp + 0x1c]
lea eax, [esp + 0x38]
mov byte [esp + 0x1c], 0
push dword [esp + 0x18]
mov byte [esp + 0x2c], 1
push eax
mov byte [esi + 0xa0], 0
call fcn.004d2110
add esp, 0xc
mov dword [esp + 0x20], eax
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004d6f10
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4d895f
mov eax, dword [edi + 0x80]
cmp dword [eax + 0x30], 0
je 0x4d852d
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
jmp 0x4d8553
mov ecx, dword [ebx + 0x4b0]
test ecx, ecx
je 0x4d8553
mov eax, dword [ebx + 0x4b4]
mov ecx, dword [ecx + ebp*4]
dec eax
add eax, ecx
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x8c], eax
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4d856e
mov eax, dword [esp + 0x44]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx + 0x6c], xmm0
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x7c], eax
mov eax, dword [edi + 0x80]
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x4d85f6
mov edx, dword [ecx]
cmp dword [edx + 8], 0
je 0x4d85f6
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3d8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x3e0], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x3e4], eax
lea eax, [esp + 0x3d8]
push eax
mov eax, dword [edx + 8]
push 0
mov dword [esp + 0x3e4], 0
push ebp
push dword [ecx + 4]
call eax
mov edx, dword [esp + 0x3e8]
mov ebx, eax
mov eax, dword [esp + 0x3f0]
add esp, 0x10
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3e4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x60], eax
test ebx, ebx
jne 0x4d895f
jmp 0x4d85fa
mov edx, dword [esp + 0x54]
test dword [esp + 0x41c], 0x400
mov eax, dword [esp + 0x31c]
je 0x4d863f
mov ecx, dword [esi + 0x9c]
movdqu xmm0, xmmword [esp + 0x3e8]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x2c]
movdqu xmmword [ecx + 0xc], xmm0
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], edx
mov byte [ecx + 8], 1
jmp 0x4d895f
mov dword [esi + 0x28], eax
lea ebx, [esi + 0x18]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x9c]
mov byte [eax + 8], 0
cmp byte [edi + 0x124], 0
je 0x4d86a8
cmp word [edi + 0x14a], 0
jbe 0x4d86a8
mov eax, dword [edi + 0x214]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push ebp
mov dword [esp + 0x1c], 0
mov eax, dword [eax + 0x70]
push 1
push edi
mov byte [esp + 0x30], 1
call eax
movsx eax, word [esp + 0x28]
add esp, 0x14
mov dword [ebx + 0x18], eax
movzx eax, word [esp + 0x10]
mov dword [ebx + 0x1c], eax
jmp 0x4d86de
mov eax, 0xffff
mov byte [esp + 0x1c], 0
cmp word [edi + 0x16c], ax
je 0x4d86cb
movsx eax, word [edi + 0x1b4]
movsx ecx, word [edi + 0x1b2]
jmp 0x4d86d9
movsx eax, word [edi + 0xde]
movsx ecx, word [edi + 0xdc]
sub ecx, eax
mov dword [ebx + 0x1c], ecx
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x48], 0x6f75746c
mov dword [esi + 0x7c], 0
test eax, eax
je 0x4d8708
cmp word [eax + 0xe], 0x18
jae 0x4d8708
mov dword [esi + 0x7c], 0x100
or dword [esi + 0x7c], 4
cmp dword [esp + 0x3e8], 0x10000
jne 0x4d873a
cmp dword [esp + 0x3f4], 0x10000
jne 0x4d873a
cmp dword [esp + 0x3ec], 0
jne 0x4d873a
cmp dword [esp + 0x3f0], 0
je 0x4d8750
lea eax, [esp + 0x3e8]
push eax
lea ebp, [esi + 0x6c]
push ebp
call fcn.004fc740
add esp, 8
jmp 0x4d8753
lea ebp, [esi + 0x6c]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
test edi, edi
jne 0x4d8763
test eax, eax
je 0x4d876e
push eax
push edi
push ebp
call fcn.004fc880
add esp, 0xc
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x3d8], eax
lea eax, [esp + 0x3e8]
push eax
lea eax, [esp + 0x3dc]
mov dword [esp + 0x3e0], 0
push eax
call fcn.004fe0e0
mov eax, dword [esp + 0x3e0]
add eax, edi
mov dword [esp + 0x3e0], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x3e4], eax
lea eax, [esp + 0x3f0]
push eax
lea eax, [esp + 0x3e4]
push eax
call fcn.004fe0e0
mov eax, dword [esp + 0x3ec]
add esp, 0x10
add eax, dword [esp + 0x30]
test byte [esp + 0x41c], 1
mov dword [ebx + 0x1c], eax
je 0x4d87f4
cmp byte [esp + 0x24], 0
je 0x4d88f7
cmp byte [esp + 0x18], 0
mov eax, dword [esi + 0xa4]
mov edi, dword [ebp + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xa8]
mov dword [esp + 0x2c], eax
je 0x4d8819
cmp dword [esp + 0x78], 0
jne 0x4d888f
movsx esi, word [ebp + 2]
test esi, esi
jle 0x4d888f
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
lea edi, [edi + 8]
dec esi
mov dword [edi - 4], eax
test esi, esi
jg 0x4d8821
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x1c], eax
lea eax, [esp + 0x3f8]
push eax
push ebp
call fcn.004fc4c0
mov eax, dword [esp + 0x408]
add esp, 8
mov esi, dword [esp + 0x3f8]
sub eax, esi
mov ecx, dword [esp + 0x404]
mov dword [ebx], eax
mov eax, ecx
sub eax, dword [esp + 0x3fc]
cmp byte [esp + 0x1c], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
je 0x4d8949
mov eax, dword [ebx + 0x10]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
mov dword [ebx + 0x14], esi
jmp 0x4d895f
test byte [esp + 0x41c], 0x10
je 0x4d895f
push dword [ebx + 0x1c]
push ebx
call fcn.004ffd10
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x408]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00484516
add esp, 0x3fc
ret