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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
lea eax, [esp + 0x16]
lea ecx, [esp + 0x17]
lea esi, [esp + 0x84]
lea edx, [esp + 0x30]
push eax
push ecx
push esi
push dword [ebp + 0x10]
push edx
call fcn.00509d80
add esp, 0x14
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x54], 0x43e780
mov dword [esp + 0x58], 0x5403fc
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], esp
mov dword [esp + 0x60], 0x4d3b2c
mov dword [esp + 0x40], 1
lea eax, [esp + 0x3c]
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 0x4d37aa
mov eax, dword [esp + 0x20]
lea ecx, [ebp + 8]
lea edx, [esp + 0xa4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov byte [esp + 7], 1
mov byte [esp + 0x15], 0x45
mov ecx, dword [ecx]
mov dword [esp + 0x24], edx
jmp 0x4d37e4
inc eax
mov dword [ecx + 0xc], eax
test ecx, ecx
je 0x4d3800
mov eax, dword [ecx + 0xc]
mov edi, dword [esp + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4d3810
mov esi, ecx
jmp 0x4d3840
mov edi, dword [esp + 0xc]
xor esi, esi
jmp 0x4d3840
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 2
mov dword [esp + 8], ecx
call eax
mov ecx, dword [esp + 8]
mov edi, dword [esp + 0xc]
cmp eax, 0xffffffff
mov esi, ecx
jne 0x4d3840
lea eax, [ebp + 8]
xor ecx, ecx
xor esi, esi
mov dword [eax], 0
nop
lea eax, [ebp + 0xc]
mov dword [esp + 8], ecx
mov edx, dword [eax]
test edx, edx
je 0x4d38a0
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
jne 0x4d3883
mov eax, dword [edx]
mov dword [esp + 0x70], esi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 3
mov ecx, edx
mov dword [esp + 0x10], edx
call eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x70]
cmp eax, 0xffffffff
je 0x4d388c
test esi, esi
je 0x4d38aa
jmp 0x4d39d6
lea eax, [ebp + 0xc]
mov dword [eax], 0
nop word cs:[eax + eax]
nop
xor edx, edx
test esi, esi
je 0x4d39d6
movzx eax, byte [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov esi, eax
mov edx, ebx
shr esi, 1
test al, 1
cmove edx, esi
add edx, edi
cmp dword [esp + 0x28], edx
jne 0x4d392f
test al, 1
cmove ebx, esi
mov dword [esp + 0xc], ebx
lea eax, [ebx + ebx]
mov dword [esp + 0x40], 4
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.004e8710
test byte [esp + 0x18], 1
mov eax, 0xa
je 0x4d38fe
mov eax, dword [esp + 0x18]
and eax, 0xfffffffe
dec eax
mov dword [esp + 0x40], 5
lea ecx, [esp + 0x18]
push 0
push eax
call fcn.004e8710
mov ecx, dword [esp + 8]
test byte [esp + 0x18], 1
lea edi, [esp + 0x19]
je 0x4d3925
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
add eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc], edi
cmp eax, dword [ecx + 0x10]
je 0x4d3940
movzx eax, byte [eax]
jmp 0x4d3953
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 6
call eax
mov edi, dword [esp + 0xc]
movsx ecx, byte [esp + 0x17]
movsx edx, byte [esp + 0x16]
mov dword [esp + 0x40], 7
movsx eax, al
lea esi, [esp + 0x84]
push esi
lea esi, [esp + 0x30]
push esi
lea esi, [esp + 0x2c]
push esi
lea esi, [esp + 0xb0]
push esi
lea esi, [esp + 0x40]
push esi
push edx
push ecx
lea ecx, [esp + 0x44]
push ecx
push edi
lea ecx, [esp + 0x39]
push ecx
lea ecx, [esp + 0x2f]
push ecx
push eax
call fcn.00509a50
add esp, 0x30
mov ecx, dword [esp + 8]
test eax, eax
jne 0x4d39ce
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4d37e0
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x40], 8
call eax
mov ecx, dword [esp + 8]
jmp 0x4d37e4
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
movzx eax, byte [esp + 0x30]
test al, 1
je 0x4d39e5
mov eax, dword [esp + 0x34]
jmp 0x4d39e7
shr eax, 1
cmp byte [esp + 7], 0
mov dword [esp + 0x10], edx
je 0x4d3a1a
test eax, eax
je 0x4d3a1a
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xa4]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x9f
jg 0x4d3a1a
mov ecx, dword [esp + 0x2c]
lea edx, [eax + 4]
mov dword [esp + 0x24], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], 9
push dword [ebp + 0x14]
push eax
push edi
call fcn.004f8fd0
add esp, 0xc
fstp qword [esp + 0x78]
mov esi, dword [esp + 8]
movsd xmm0, qword [esp + 0x78]
mov eax, dword [ebp + 0x18]
movsd qword [eax], xmm0
push dword [ebp + 0x14]
push dword [esp + 0x28]
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004132c0
add esp, 0x10
test esi, esi
je 0x4d3aa6
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, dword [esi + 0x10]
jne 0x4d3aac
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 0xa
mov ecx, esi
call eax
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x4d3aac
lea eax, [ebp + 8]
xor esi, esi
mov dword [eax], 0
test ecx, ecx
jne 0x4d3ab0
jmp 0x4d3b26
mov ecx, dword [esp + 0x10]
xor esi, esi
test ecx, ecx
je 0x4d3b26
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4d3ad4
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], 0xb
mov dword [esp + 8], esi
call eax
mov esi, dword [esp + 8]
cmp eax, 0xffffffff
je 0x4d3b1d
test esi, esi
je 0x4d3ade
mov eax, dword [ebp + 0x14]
or byte [eax], 2
test byte [esp + 0x18], 1
je 0x4d3af1
push dword [esp + 0x20]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x30], 1
je 0x4d3b04
push dword [esp + 0x38]
call fcn.0040bd10
add esp, 4
lea eax, [esp + 0x3c]
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
lea eax, [ebp + 0xc]
mov dword [eax], 0
test esi, esi
jne 0x4d3ade
jmp 0x4d3ad8