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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xac
mov edi, dword [esp + 0xc0]
mov esi, ecx
mov dword [esp], edx
mov ebp, dword [edi]
mov ecx, edi
call fcn.004d34ac
test al, 1
jne 0x4d662e
mov word [esi], 1
jmp 0x4d6657
mov ebx, edx
mov dword [esp + 4], esi
lea esi, [esp + 0x10]
mov edx, edi
mov ecx, esi
push 7
call fcn.004d34f2
pop eax
cmp byte [esi], 0
je 0x4d6662
mov bl, byte [esp + 0x11]
mov eax, dword [esp + 4]
mov byte [eax + 1], bl
mov byte [eax], 1
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x14]
mov esi, dword [edi]
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0x44], eax
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov ecx, esi
mov dword [esp + 0x40], eax
mov eax, dword [eax + 4]
sub ecx, eax
neg ecx
cmp esi, eax
mov eax, edi
sbb eax, 0
mov eax, dword [esp + 8]
cmovb edx, ecx
cmp eax, edx
jbe 0x4d6708
mov dword [esp], esi
mov bl, 2
mov eax, dword [0xa70a24]
test eax, eax
jne 0x4d664d
mov ecx, 0xa6f6d4
call fcn.0040e00b
test al, al
je 0x4d664d
mov ecx, dword [0xa6f6d4]
movzx edx, al
call fcn.00605cf4
test al, al
je 0x4d664d
mov ebp, dword [0xa6f6d4]
mov dword [esp + 8], edi
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
test esi, esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
je 0x4d68ac
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
and dword [esp + 0x20], 0
xor edi, edi
inc edi
jmp 0x4d68b0
mov edx, edi
mov edi, esi
sub edi, ebp
test bl, bl
js 0x4d673a
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc0]
mov edx, esi
call fcn.00605895
mov eax, dword [esp + 4]
and dword [eax + 4], 0
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], esi
mov byte [eax], 0
jmp 0x4d6657
mov dword [esp + 0xc], edi
mov ecx, esi
push dword [esp + 0x40]
call fcn.006057c2
pop ecx
mov ecx, eax
push 0x9baf84
push dword [esp + 0xc]
call fcn.004d229c
pop ecx
pop ecx
mov ecx, dword [esp]
mov ebp, eax
lea eax, [esp + 0x10]
mov esi, edx
add edx, edx
and dword [eax], 0
mov byte [eax + 4], 0
add ecx, 0x20
mov dword [esp], ecx
call fcn.004ce7d4
mov edi, dword [esp + 0xc0]
test esi, esi
je 0x4d67db
mov al, byte [ebp]
lea ecx, [esp + 0x10]
shr al, 4
movzx edx, al
call fcn.004d6b96
mov ebx, eax
cmp bl, 2
je 0x4d67eb
test bl, 1
je 0x4d67af
mov ecx, dword [esp]
movzx edx, bh
call fcn.004deee2
mov al, byte [ebp]
lea ecx, [esp + 0x10]
and al, 0xf
movzx edx, al
call fcn.004d6b96
mov ebx, eax
cmp bl, 2
je 0x4d67eb
test bl, 1
je 0x4d67d7
mov ecx, dword [esp]
movzx edx, bh
call fcn.004deee2
inc ebp
dec esi
jmp 0x4d6782
cmp dword [esp + 0x10], 0
je 0x4d6838
cmp byte [esp + 0x14], 0
mov bh, 6
jne 0x4d6838
mov esi, dword [esp + 4]
mov ebp, dword [esp + 8]
mov al, 1
mov dword [esp], eax
mov ecx, edi
mov edx, ebp
call fcn.00605895
mov eax, dword [esp]
movsd xmm1, qword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
mov byte [esi], al
mov byte [esi + 1], bh
movsd qword [esi + 0xa], xmm1
movsd xmm1, qword [esp + 0x20]
movzx eax, word [esp + 0x28]
movsd qword [esi + 2], xmm0
movsd qword [esi + 0x12], xmm1
mov word [esi + 0x1a], ax
jmp 0x4d6657
mov edx, dword [esp]
lea esi, [esp + 0x48]
mov ecx, esi
call fcn.0043d3f3
cmp dword [esi], 0
mov ebp, dword [esp + 8]
je 0x4d69e8
movsd xmm0, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x50]
lea esi, [esp + 0x10]
lea ebx, [esp + 0x5c]
mov ecx, ebx
mov edx, esi
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
call fcn.004d20f5
mov eax, dword [esp + 0xc]
mov dword [esp], 0
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ebp
movsd xmm1, qword [ebx + 8]
movsd xmm0, qword [ebx]
movsd qword [esi + 0xa], xmm1
movsd xmm1, qword [ebx + 0x10]
movsd qword [esi + 2], xmm0
movsd qword [esi + 0x12], xmm1
jmp 0x4d69f1
xor edi, edi
xor eax, eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x78]
mov dword [edx], eax
push 0x9baf54
call fcn.0057917a
pop eax
mov dword [esp + 0x5c], 0x9baf7c
mov dword [esp + 0x60], 1
and dword [esp + 0x6c], 0
mov dword [esp + 0x64], str.dest_is_out_of_bounds
and dword [esp + 0x68], 0
cmp edi, esi
jae 0x4d690a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edi
inc edi
jmp 0x4d690c
xor eax, eax
add ebp, 0x1c
lea edx, [esp + 0x10]
lea ecx, [esp + 0x8c]
mov dword [esp + 0xc], ebp
mov dword [edx], eax
push 0x9baf54
call fcn.0057917a
pop eax
xor ebp, ebp
cmp edi, esi
mov eax, 0
jae 0x4d6952
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edi
lea edi, [esp + 0x10]
lea ecx, [esp + 0x48]
mov dword [edi], eax
mov edx, edi
push 0x9baf54
call fcn.0057917a
pop eax
mov eax, dword [esp + 0x40]
mov esi, dword [esp]
lea edx, [esp + 0x48]
mov eax, dword [eax + 4]
mov ecx, eax
sub ecx, esi
cmp esi, eax
lea eax, [esp + 0x74]
sbb dword [esp + 8], 0
cmovb ebp, ecx
lea ecx, [esp + 0x78]
mov dword [edi], ecx
lea ecx, [esp + 0x5c]
mov dword [eax], ebp
mov dword [edi + 4], ecx
lea ecx, [esp + 0x8c]
mov dword [edi + 8], 0x9ba4f0
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x44]
mov dword [edi + 0x10], ecx
mov ecx, 0x9ba4ac
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0xa0]
mov dword [edx], edi
mov dword [edx + 4], 3
mov dword [edx + 8], ecx
mov ecx, dword [0xa6f6d4]
call fcn.00606f01
jmp 0x4d664d
mov bh, byte [esp + 0x4c]
mov al, 1
mov dword [esp], eax
mov esi, dword [esp + 4]
jmp 0x4d67f8