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

Disassembly:
mov eax, dword [0x821094]
sub esp, 0x1ac
test eax, eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x4d7dc1
lea eax, [esp + 0xb8]
push 0x104
push eax
push 0x5104e8
mov dword [0x8210d4], 1
call fcn.004e6240
lea ecx, [esp + 0xb8]
push 0x1ae
push ecx
push str.Program_runs_to__s__d.
push esi
call fcn.004331c0
add esp, 0x10
cmp dword [esi + 0x78], 5
jg 0x4d7de3
mov edx, dword [esp + 0x1c8]
pop edi
pop esi
pop ebp
mov dword [edx], 0
mov al, 1
pop ebx
add esp, 0x1ac
ret 0x10
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0x6c
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x5e8f]
mov dword [esp + 0x2c], 0x20000
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov ebp, dword [esp + 0x1c0]
sub ebp, eax
mov eax, dword [esi + 0x5e8f]
push eax
mov edx, dword [eax]
call dword [edx + 0x7c]
mov ebx, dword [esp + 0x1c4]
sub ebx, eax
mov al, byte [0x942108]
test al, 1
jne 0x4d7eaa
or al, 1
mov byte [0x942108], al
mov eax, dword [esi + 0x5e8f]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov dword [0x9433f8], eax
mov eax, dword [esi + 0x5e8f]
push eax
mov edx, dword [eax]
call dword [edx + 0x7c]
mov dword [0x9433fc], eax
mov edi, dword [esi + 0x5e8f]
push edi
mov eax, dword [edi]
call dword [eax + 0x80]
mov ecx, dword [edi]
mov edx, eax
push edi
mov dword [esp + 0x14], edx
call dword [ecx + 0x78]
mov edx, dword [esp + 0x10]
add edx, eax
mov dword [0x943400], edx
mov edi, dword [esi + 0x5e8f]
push edi
mov eax, dword [edi]
call dword [eax + 0x84]
mov ecx, dword [edi]
mov edx, eax
push edi
mov dword [esp + 0x14], edx
call dword [ecx + 0x7c]
mov edx, dword [esp + 0x10]
add edx, eax
mov dword [0x943404], edx
mov eax, dword [esi + 0x5e9f]
lea edx, [esp + 0x20]
xor edi, edi
push edx
mov edx, dword [esi + 0x5e9b]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x60]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c8]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov dword [eax], edi
mov edi, dword [esp + 0x1cc]
xor eax, eax
mov dword [esp + 0x48], edx
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], eax
mov ecx, dword [esi + 0x5e7b]
mov eax, dword [ecx + 0x4c]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x30]
test eax, eax
jne 0x4d814b
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x50]
push 1
mov edx, dword [eax]
push ecx
push 0x9433f8
push eax
call dword [edx + 0x64]
test eax, eax
jne 0x4d814b
mov eax, dword [esp + 0x5c]
xor ecx, ecx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x70]
sar edx, 1
imul edx, ebx
add edx, ebp
push eax
mov cx, word [eax + edx*2]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x14]
push ecx
fmul dword [0x5104c8]
fstp dword [esp + 0x40]
mov edx, dword [ecx]
call dword [edx + 0x80]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
fld dword [0x4f4e4c]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x40
jne 0x4d814b
fild dword [esp + 0x1c0]
mov eax, dword [esi + 0x5e8f]
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], 0x47800000
push ecx
fmul dword [0x4f4e48]
push edi
push eax
fstp dword [esp + 0x3c]
fild dword [esp + 0x1d0]
fmul dword [0x4f4e48]
fstp dword [esp + 0x40]
mov edx, dword [eax]
call dword [edx + 0x54]
test eax, eax
je 0x4d7fff
push str.Pick__:_Error_occurs.
push esi
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret 0x10
mov edi, dword [esi + 0x5fb3]
test edi, edi
je 0x4d814b
mov al, byte [edi + 0x188e]
test al, al
jne 0x4d813a
cmp word [edi + 0x36b], 0x38
je 0x4d813a
lea edx, [edi + 0x3c7]
mov eax, dword [edi + 0x3c7]
cmp eax, 0xffffffff
mov ebx, dword [edx + 4]
mov ecx, dword [edx + 8]
mov ebp, dword [edx + 0xc]
je 0x4d813a
mov edx, dword [esp + 0x1c0]
cmp edx, eax
jl 0x4d813a
cmp edx, ecx
jg 0x4d813a
mov ecx, dword [esp + 0x1c4]
cmp ecx, ebx
jl 0x4d813a
cmp ecx, ebp
jg 0x4d813a
lea eax, [edi + 0xf9]
mov ebx, dword [edi + 0xf9]
mov dword [esp + 0x20], ebx
mov ebx, dword [eax + 4]
mov dword [esp + 0x24], ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1cc]
fld dword [eax]
fsub dword [esp + 0x20]
fld dword [eax + 4]
fsub dword [esp + 0x24]
fld dword [eax + 8]
fsub dword [esp + 0x28]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [edi + 0x3bf]
fcompp
fnstsw ax
test ah, 1
jne 0x4d813a
push ecx
push edx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x20]
push edx
mov edx, dword [esi + 0x5e8f]
lea ecx, [esp + 0x28]
push eax
push ecx
push edx
mov ecx, edi
call fcn.004be230
mov ecx, dword [esi + 0x5f3b]
push eax
call fcn.00436560
mov ebx, eax
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp eax, ebp
je 0x4d811b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4d812d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x14], ebp
cmp ebx, ebp
jle 0x4d813a
mov eax, dword [esp + 0x1c8]
mov dword [eax], edi
mov ecx, edi
call fcn.004be220
mov edi, eax
test edi, edi
jne 0x4d800d
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1ac
ret 0x10