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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x170
lea eax, [esp + 0x30]
lea ecx, [esp + 0x32]
lea esi, [esp + 0x8c]
lea edx, [esp + 0x38]
push eax
push ecx
push esi
push dword [ebp + 0x10]
push edx
call fcn.0050a630
add esp, 0x14
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], 0x43e780
mov dword [esp + 0x60], 0x54054c
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], esp
mov dword [esp + 0x68], 0x4d72b9
mov dword [esp + 0x48], 1
lea eax, [esp + 0x44]
push eax
call fcn.0043f740
add esp, 4
lea ecx, [esp + 0x18]
push 0
push 0xa
call fcn.004e8710
test byte [esp + 0x18], 1
lea eax, [esp + 0x19]
je 0x4d6eda
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xcc]
mov dword [esp + 0x34], 0
mov byte [esp + 0xb], 1
mov byte [esp + 0x17], 0x45
mov dword [esp + 0x28], eax
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
jmp 0x4d6f16
add eax, 2
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xc]
mov dl, 1
test ecx, ecx
je 0x4d6f40
mov eax, dword [ecx + 0xc]
mov edi, dword [esp + 4]
cmp eax, dword [ecx + 0x10]
je 0x4d6f50
movzx eax, word [eax]
jmp 0x4d6f6b
mov edi, dword [esp + 4]
jmp 0x4d6f88
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 2
call eax
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 4]
xor edx, edx
cmp ax, 0xffff
jne 0x4d6f88
lea eax, [ebp + 8]
xor ecx, ecx
mov dl, 1
mov dword [esp + 0x24], 0
mov dword [eax], 0
lea eax, [ebp + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4d6fe2
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4d6fb0
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4d6fd9
test dl, dl
jne 0x4d6fec
jmp 0x4d712a
mov eax, dword [ecx]
mov dword [esp + 0x78], edx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 3
mov dword [esp + 0x10], ecx
call eax
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 4]
mov edx, dword [esp + 0x78]
cmp ax, 0xffff
jne 0x4d6fa6
lea eax, [ebp + 0xc]
mov dword [eax], 0
xor ecx, ecx
test dl, dl
jne 0x4d712a
movzx eax, byte [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, eax
mov edx, esi
shr ecx, 1
test al, 1
cmove edx, ecx
add edx, edi
cmp dword [esp + 0x2c], edx
jne 0x4d706d
test al, 1
cmove esi, ecx
mov dword [esp + 4], esi
lea eax, [esi + esi]
mov dword [esp + 0x48], 4
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.004e8710
test byte [esp + 0x18], 1
mov eax, 0xa
je 0x4d7040
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x48], 5
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.004e8710
test byte [esp + 0x18], 1
lea edi, [esp + 0x19]
je 0x4d7063
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 4]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], edi
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4d7090
movzx eax, word [eax]
jmp 0x4d70a7
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 6
call eax
mov edi, dword [esp + 4]
movzx ecx, word [esp + 0x32]
movzx edx, word [esp + 0x30]
mov dword [esp + 0x48], 7
movzx eax, ax
lea esi, [esp + 0x8c]
push esi
lea esi, [esp + 0x38]
push esi
lea esi, [esp + 0x30]
push esi
lea esi, [esp + 0xd8]
push esi
lea esi, [esp + 0x48]
push esi
push edx
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
lea ecx, [esp + 0x3b]
push ecx
lea ecx, [esp + 0x33]
push ecx
push eax
call fcn.0050a2b0
add esp, 0x30
test eax, eax
jne 0x4d7122
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4d6f10
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x48], 8
call eax
jmp 0x4d6f16
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 4]
movzx eax, byte [esp + 0x38]
mov dword [esp + 0x10], ecx
test al, 1
je 0x4d716c
mov eax, dword [esp + 0x3c]
cmp byte [esp + 0xb], 0
je 0x4d7175
test eax, eax
je 0x4d7175
mov eax, dword [esp + 0x28]
lea edx, [esp + 0xcc]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x9f
jg 0x4d7175
mov ecx, dword [esp + 0x34]
lea edx, [eax + 4]
mov dword [esp + 0x28], edx
mov dword [eax], ecx
jmp 0x4d7175
shr eax, 1
cmp byte [esp + 0xb], 0
jne 0x4d7142
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], 9
push dword [ebp + 0x14]
push eax
push edi
call fcn.004f8fd0
add esp, 0xc
fstp qword [esp + 0x80]
movsd xmm0, qword [esp + 0x80]
mov eax, dword [ebp + 0x18]
movsd qword [eax], xmm0
push dword [ebp + 0x14]
push dword [esp + 0x2c]
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004132c0
add esp, 0x10
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4d71da
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, dword [esi + 0x10]
je 0x4d71eb
movzx eax, word [eax]
jmp 0x4d7208
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dl, 1
test ecx, ecx
jne 0x4d7214
jmp 0x4d7270
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 0xa
mov ecx, esi
call eax
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp ax, 0xffff
je 0x4d7233
test ecx, ecx
je 0x4d7270
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc], esi
cmp eax, dword [ecx + 0x10]
je 0x4d7246
movzx eax, word [eax]
cmp ax, 0xffff
je 0x4d7263
mov esi, dword [esp + 0xc]
test dl, dl
je 0x4d7274
jmp 0x4d727a
lea eax, [ebp + 8]
xor esi, esi
mov dl, 1
mov dword [eax], 0
test ecx, ecx
jne 0x4d7214
jmp 0x4d7270
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], 0xb
call eax
mov edx, dword [esp + 4]
cmp ax, 0xffff
jne 0x4d7229
mov esi, dword [esp + 0xc]
lea eax, [ebp + 0xc]
mov dword [eax], 0
test dl, dl
je 0x4d727a
mov eax, dword [ebp + 0x14]
or byte [eax], 2
test byte [esp + 0x18], 1
je 0x4d728d
push dword [esp + 0x20]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x38], 1
je 0x4d72a0
push dword [esp + 0x40]
call fcn.0040bd10
add esp, 4
lea eax, [esp + 0x44]
push eax
call fcn.0043f7a0
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14