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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax + 0xc]
mov eax, 1
dec ecx
push edi
cmp ecx, eax
mov dword [esp + 0x2c], esi
jle 0x4e0770
mov edx, dword [ebp + 0x10]
add edx, 4
mov edi, dword [edx - 4]
mov ebx, dword [edx]
cmp edi, ebx
ja 0x4e078e
inc eax
add edx, 4
cmp eax, ecx
jl 0x4e075f
push 0
push 0
call fcn.004d6a36
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4e0794
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp dword [sym.imp.msvcrt.dll_abort]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov edx, ecx
mov esi, eax
shl edx, 7
add edx, ecx
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0x7fefffff
mov dword [esp + 0x68], 0
lea ecx, [eax + edx*4]
mov dword [esp + 0x6c], 0
cmp esi, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], esi
je 0x4e0936
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ebx, eax
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x24], ebx
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*4]
cmp ebx, edi
mov dword [esp + 0x14], edi
je 0x4e0920
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4e0911
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + ecx*8]
mov ecx, eax
mov dword [esp + 0x20], ecx
lea edx, [eax + edx*4]
cmp ecx, edx
mov dword [esp + 0x38], edx
je 0x4e0911
mov eax, dword [ecx + 4]
test eax, eax
je 0x4e08fa
mov esi, dword [ebx + 0x20]
mov eax, dword [ecx]
test esi, esi
mov dword [esp + 0x1c], 0
jle 0x4e08fa
add eax, 0x1c
mov dword [esp + 0x3c], eax
mov esi, dword [eax]
test esi, esi
je 0x4e08d3
mov eax, dword [esp + 0x3c]
mov eax, dword [eax - 4]
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea edi, [esi + ecx*4]
cmp esi, edi
je 0x4e08d3
push esi
call fcn.004e0476
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 4
lea edx, [eax + eax*8]
lea edx, [ecx + edx*8]
cmp ecx, edx
je 0x4e08cc
fld qword [ecx + 0x28]
fcomp qword [0x637f38]
fnstsw ax
test ah, 0x41
jne 0x4e08c1
fld qword [ecx + 0x28]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 1
je 0x4e08a5
mov eax, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
fld qword [ecx + 0x28]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 0x41
jne 0x4e08c1
mov eax, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebx
add ecx, 0x48
cmp ecx, edx
jne 0x4e0879
mov ebx, dword [esp + 0x24]
add esi, 0x3c
cmp esi, edi
jne 0x4e0861
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx + 0x20]
inc ecx
add eax, 0x34
cmp ecx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
jl 0x4e0843
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
add ecx, 0x24
cmp ecx, edx
mov dword [esp + 0x20], ecx
jne 0x4e081c
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add ebx, 0x3c
cmp ebx, edi
mov dword [esp + 0x24], ebx
jne 0x4e07f6
mov eax, dword [esp + 0x18]
add esi, 0x204
cmp esi, eax
mov dword [esp + 0x10], esi
jne 0x4e07d6
call fcn.004ed036
test eax, eax
je 0x4e096b
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [sym.imp.msvcrt.dll__iob]
push eax
push ecx
add edx, 0x40
push str.min_rdslope___f_max_rdslope___f_n
push edx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x18
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.004f3736
mov eax, dword [ebp + 0xc]
add esp, 8
test eax, eax
mov dword [esp + 0x28], 0
jle 0x4e1000
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x7c], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x6c]
mov eax, dword [edx + eax*4]
mov dword [esp + 0x74], ecx
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x4e0d3d
mov edi, dword [esp + 0x2c]
mov ebx, eax
fld qword [esp + 0x70]
fadd qword [esp + 0x78]
mov ecx, dword [ebp + 8]
push ecx
fmul qword [0x637f18]
fstp qword [esp + 0x54]
call fcn.004f34f6
mov edx, dword [esp + 0x38]
push edx
call fcn.004d7156
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x30]
mov edx, ecx
shl edx, 7
add edx, ecx
add esp, 8
mov dword [esp + 0x10], eax
lea ecx, [eax + edx*4]
cmp eax, ecx
mov dword [esp + 0x18], ecx
je 0x4e0b86
jmp 0x4e0a2d
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x24], edx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
cmp edx, eax
mov dword [esp + 0x14], eax
je 0x4e0b69
mov eax, dword [edx + 0x34]
test eax, eax
je 0x4e0b52
mov ecx, dword [edx + 0x30]
mov esi, eax
mov dword [esp + 0x20], esi
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*4]
cmp esi, ecx
mov dword [esp + 0x38], ecx
je 0x4e0b52
mov eax, dword [esi + 4]
test eax, eax
je 0x4e0b43
mov edi, dword [edx + 0x20]
mov eax, dword [esi]
test edi, edi
mov dword [esp + 0x1c], 0
jle 0x4e0b43
lea ecx, [eax + 0x1c]
mov dword [esp + 0x48], ecx
mov ebx, dword [ecx]
test ebx, ebx
je 0x4e0b24
mov eax, dword [ecx - 4]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
cmp ebx, eax
mov dword [esp + 0x44], eax
je 0x4e0b24
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x4e0b0d
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov esi, edi
lea ecx, [eax + eax*8]
lea edx, [edx + ecx*8]
mov ecx, edi
cmp ecx, edx
je 0x4e0ae8
fld qword [ecx + 0x28]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 1
jne 0x4e0ae1
lea esi, [ecx + 0x48]
add ecx, 0x48
cmp ecx, edx
jne 0x4e0ad0
mov eax, edi
cmp eax, esi
je 0x4e0afc
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, esi
jne 0x4e0af2
cmp eax, edx
je 0x4e0b0d
or ecx, 0xffffffff
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, edx
jne 0x4e0b03
mov eax, dword [esp + 0x44]
add ebx, 0x3c
cmp ebx, eax
jne 0x4e0ab6
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edi, dword [edx + 0x20]
inc eax
add ecx, 0x34
cmp eax, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x48], ecx
jl 0x4e0a98
mov ecx, dword [esp + 0x38]
add esi, 0x24
cmp esi, ecx
mov dword [esp + 0x20], esi
jne 0x4e0a71
mov eax, dword [esp + 0x14]
add edx, 0x3c
cmp edx, eax
mov dword [esp + 0x24], edx
jne 0x4e0a4b
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, 0x204
cmp eax, ecx
mov dword [esp + 0x10], eax
jne 0x4e0a29
mov ebx, dword [esp + 0x3c]
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 0x30]
mov ecx, eax
shl ecx, 7
add ecx, eax
lea ecx, [esi + ecx*4]
cmp esi, ecx
mov dword [esp + 0x18], ecx
je 0x4e0c4c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [ebx + edx*4]
cmp ebx, eax
mov dword [esp + 0x14], eax
je 0x4e0c36
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4e0c27
mov eax, dword [ebx + 0x20]
xor edi, edi
test eax, eax
jle 0x4e0c27
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 4]
mov ecx, ebx
push eax
sub ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, esi
push edx
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x30]
sub ecx, eax
mov eax, 0xfe03f81
imul ecx
sar edx, 5
mov ecx, dword [esp + 0x40]
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004f2a06
add esp, 0x18
test eax, eax
jne 0x4e0784
mov eax, dword [ebx + 0x20]
inc edi
cmp edi, eax
jl 0x4e0bc8
mov eax, dword [esp + 0x14]
add ebx, 0x3c
cmp ebx, eax
jne 0x4e0bb8
mov ecx, dword [esp + 0x18]
add esi, 0x204
cmp esi, ecx
jne 0x4e0ba2
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
push eax
call fcn.004d7156
mov esi, eax
add esp, 4
cmp esi, ebx
jle 0x4e0c71
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jmp 0x4e0cb0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x74], ecx
je 0x4e0c98
fld qword [esp + 0x50]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 1
je 0x4e0cb0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x30], 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f3616
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
push 0
push edx
push eax
call fcn.004d70e6
add esp, 0x10
test eax, eax
jl 0x4e102c
call fcn.004ed036
test eax, eax
je 0x4e0d01
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ecx
push edx
push esi
push ebx
add eax, 0x40
push str.maxlen_08ld_actuallen_08ld_thresh_f_n
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x18
fld qword [esp + 0x70]
fsub qword [0x6562f8]
mov eax, dword [esp + 0x40]
inc eax
fcomp qword [esp + 0x78]
mov dword [esp + 0x40], eax
fnstsw ax
test ah, 0x41
jne 0x4e0d5b
cmp dword [esp + 0x40], 0x20
jge 0x4e0d5b
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
mov ebx, dword [ecx + edx*4]
cmp ebx, 0xffffffff
mov dword [esp + 0x3c], ebx
jne 0x4e09db
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0xbff00000
mov dword [esp + 0x30], 1
jmp 0x4e0d7a
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4e0d7a
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.warning:_empty_layer_generated_n
add eax, 0x40
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 8
call fcn.004ed036
test eax, eax
je 0x4e0daa
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push edx
push eax
add ecx, 0x40
push str.success__d_goodthresh__f_n
push ecx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0x14
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x30]
mov edx, ecx
mov ebx, eax
shl edx, 7
add edx, ecx
mov dword [esp + 0x10], ebx
lea edx, [eax + edx*4]
cmp ebx, edx
mov dword [esp + 0x18], edx
je 0x4e0f2e
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x24], ecx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
cmp ecx, eax
mov dword [esp + 0x14], eax
je 0x4e0f1c
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x4e0f01
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x20], eax
lea edx, [edx + edx*8]
lea esi, [eax + edx*4]
cmp eax, esi
mov dword [esp + 0x38], esi
je 0x4e0f01
mov edx, dword [eax + 4]
test edx, edx
je 0x4e0eee
mov edi, dword [ecx + 0x20]
mov edx, dword [eax]
test edi, edi
mov dword [esp + 0x1c], 0
jle 0x4e0eee
add edx, 0x1c
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x3c]
mov edi, dword [eax]
test edi, edi
je 0x4e0ec3
mov ecx, eax
mov eax, dword [ecx - 4]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea eax, [edi + edx*4]
cmp edi, eax
mov dword [esp + 0x44], eax
je 0x4e0ec3
mov ebx, dword [edi + 0x28]
test ebx, ebx
je 0x4e0eb8
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov esi, ebx
lea eax, [eax + eax*8]
lea edx, [ecx + eax*8]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4e0e93
mov ecx, ebx
cmp ecx, edx
je 0x4e0e93
fld qword [ecx + 0x28]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 1
jne 0x4e0e8c
lea esi, [ecx + 0x48]
add ecx, 0x48
cmp ecx, edx
jne 0x4e0e7b
mov eax, ebx
cmp eax, esi
je 0x4e0ea7
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, esi
jne 0x4e0e9d
cmp eax, edx
je 0x4e0eb8
or ecx, 0xffffffff
mov dword [eax + 0x20], ecx
add eax, 0x48
cmp eax, edx
jne 0x4e0eae
mov eax, dword [esp + 0x44]
add edi, 0x3c
cmp edi, eax
jne 0x4e0e59
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
inc eax
mov edx, dword [ecx + 0x20]
add esi, 0x34
cmp eax, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], esi
jl 0x4e0e35
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
add eax, 0x24
cmp eax, esi
mov dword [esp + 0x20], eax
jne 0x4e0e0e
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 0x3c
cmp ecx, eax
mov dword [esp + 0x24], ecx
jne 0x4e0dea
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
add ebx, 0x204
cmp ebx, edx
mov dword [esp + 0x10], ebx
jne 0x4e0dcc
mov esi, dword [edi + 0x30]
mov edi, dword [edi + 0x2c]
mov edx, edi
shl edx, 7
add edx, edi
lea ecx, [esi + edx*4]
cmp esi, ecx
mov dword [esp + 0x18], ecx
je 0x4e0fec
mov eax, dword [esi]
mov ebx, dword [esi + 4]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
cmp ebx, eax
mov dword [esp + 0x14], eax
je 0x4e0fde
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4e0fcf
mov eax, dword [ebx + 0x20]
xor edi, edi
test eax, eax
jle 0x4e0fcf
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 4]
push ecx
mov ecx, ebx
sub ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push edi
sar edx, 5
mov eax, edx
mov ecx, esi
shr eax, 0x1f
add edx, eax
push edx
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x30]
sub ecx, eax
mov eax, 0xfe03f81
imul ecx
sar edx, 5
mov ecx, dword [esp + 0x40]
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004f2a06
add esp, 0x18
test eax, eax
jne 0x4e0784
mov eax, dword [ebx + 0x20]
inc edi
cmp edi, eax
jl 0x4e0f70
mov eax, dword [esp + 0x14]
add ebx, 0x3c
cmp ebx, eax
jne 0x4e0f60
mov ecx, dword [esp + 0x18]
add esi, 0x204
cmp esi, ecx
jne 0x4e0f4a
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x4e098c
call fcn.004ed036
cmp eax, 5
jl 0x4e1016
mov eax, dword [ebp + 8]
push eax
call fcn.004e0576
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004d6d96
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp dword [sym.imp.msvcrt.dll_abort]