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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66d1ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
xor edi, edi
mov ecx, esi
mov dword [esp + 0xe8], edi
call fcn.004be0b0
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], eax
call fcn.0065e79e
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], 1
call fcn.0065e79e
lea ecx, [esp + 0x60]
mov byte [esp + 0xe8], 2
call fcn.0064dc20
lea ecx, [esp + 0x38]
call fcn.0064dc20
mov ecx, esi
call fcn.004be4f0
xor esi, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], esi
mov edi, 0x6fd92c
mov ebx, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.004be450
cmp dword [edi], 1
jne 0x48594a
test eax, eax
je 0x48594a
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.005357b0
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0xec], 3
call fcn.0065e80a
lea ecx, [esp + 0x30]
mov byte [esp + 0xe8], 2
call fcn.0065e798
lea edx, [esp + 0x54]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0065ecf6
push 0x6d6f4c
lea edx, [esp + 0x38]
push eax
push edx
mov byte [esp + 0xf4], bl
call fcn.0065ec7e
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xec], 5
call fcn.0065e80a
lea ecx, [esp + 0x34]
mov byte [esp + 0xe8], bl
call fcn.0065e798
lea ecx, [esp + 0x28]
mov byte [esp + 0xe8], 2
call fcn.0065e798
inc esi
mov edx, dword [esp + 0x18]
add edi, ebx
inc edx
cmp edi, 0x6fd9f4
mov dword [esp + 0x18], edx
jl 0x48589e
mov edi, dword [ebp + 8]
mov ebx, dword [0x821414]
push str.ANSI_AAMA_VERSION:_1.0.0_n
push edi
mov dword [esp + 0x18], esi
call ebx
add esp, 8
push str.AUTHOR:_ET2000_n
push edi
call ebx
mov eax, dword [esp + 0x28]
add esp, 8
mov ecx, dword [eax + 0x24]
push ecx
push str.CREATION_DATE:__s_n
push edi
call ebx
add esp, 0xc
push str.CREATION_TIME:_00:00_n
push edi
call ebx
add esp, 8
push str.UNITS:_METRIC_n
push edi
call ebx
mov edx, dword [ebp + 0xc]
add esp, 8
push edx
push str.GRADING_RULE_TABLE:__s_n
push edi
call ebx
add esp, 0xc
push esi
push str.NUMBER_OF_SIZES:___d_n
push edi
call ebx
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
push str.SIZE_LIST:__s_n
push edi
call ebx
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, dword [ecx + 0x28]
push edx
push str.SAMPLE_SIZE:__s_n
push edi
call ebx
mov eax, dword [ebp + 0x10]
mov esi, 1
add esp, 0xc
mov dword [esp + 0x18], esi
mov eax, dword [eax + 8]
cmp eax, esi
mov dword [esp + 0x7c], eax
jl 0x485c36
mov edx, dword [ebp + 0x10]
lea ecx, [esp + 0x80]
push ecx
mov eax, dword [edx + 4]
mov ecx, dword [eax + esi*4 - 4]
call fcn.004d4310
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x70], ecx
push 0
push 0
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], edx
call fcn.0064dce0
push 1
lea eax, [esp + 0x64]
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
call fcn.0064dc70
mov ecx, dword [esp + 0x6c]
call fcn.004a82f0
test eax, eax
mov dword [esp + 0x1c], eax
je 0x485c25
mov ecx, eax
call fcn.004bbbe0
push esi
push str.RULE:_DELTA___d_n
push edi
mov dword [esp + 0x84], eax
mov dword [esp + 0x18], 0
call ebx
add esp, 0xc
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.004be450
mov esi, eax
test esi, esi
je 0x485c0f
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x485c8b
mov edx, dword [esp + 0x1c]
mov ecx, esi
mov eax, dword [edx + 4]
push eax
call fcn.004a81e0
test eax, eax
je 0x485b5c
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0xb0]
inc esi
push ecx
mov ecx, eax
mov dword [esp + 0x10], esi
call fcn.004ac900
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
fld qword [esp + 0x38]
fsub qword [esp + 0x60]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
fld qword [esp + 0x40]
fsub qword [esp + 0x68]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
cmp esi, eax
mov dword [esp + 0x48], edx
fmul qword [0x692698]
je 0x485bf2
sub esp, 8
fstp qword [esp]
sub esp, 8
fmul qword [0x692698]
fstp qword [esp]
push str._8.4lf___8.4lf
jmp 0x485c09
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x54]
call fcn.0049e360
push eax
mov ecx, esi
call fcn.0049d740
test eax, eax
je 0x485cdf
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x98]
inc esi
push edx
mov ecx, eax
mov dword [esp + 0x10], esi
call fcn.004ac900
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
fld qword [esp + 0x38]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
fsub qword [esp + 0x60]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
fld qword [esp + 0x40]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
fsub qword [esp + 0x68]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x48], ecx
cmp esi, eax
mov dword [esp + 0x4c], edx
fmul qword [0x692698]
je 0x485bf2
sub esp, 8
fstp qword [esp]
sub esp, 8
fmul qword [0x692698]
fstp qword [esp]
push str._8.4lf___8.4lf
jmp 0x485c09
sub esp, 8
fstp qword [esp]
sub esp, 8
fmul qword [0x692698]
fstp qword [esp]
push str._8.4lf___8.4lf_n
push edi
call ebx
add esp, 0x18
mov eax, dword [esp + 0x20]
inc eax
cmp eax, 0x32
mov dword [esp + 0x20], eax
jl 0x485aa7
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x7c]
inc esi
cmp esi, eax
mov dword [esp + 0x18], esi
jle 0x485a06
push str.END_n
push edi
call ebx
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe8], 1
call fcn.0065e798
lea ecx, [esp + 0x54]
mov byte [esp + 0xe8], 0
call fcn.0065e798
lea ecx, [ebp + 0xc]
mov dword [esp + 0xe8], 0xffffffff
call fcn.0065e798
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
call fcn.004ac920
test eax, eax
mov dword [esp + 0x24], eax
je 0x485cdf
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, eax
call fcn.00490320
test eax, eax
mov dword [esp + 0x28], eax
je 0x485cdf
mov edx, dword [eax + 4]
mov ecx, esi
push edx
call fcn.0049e7b0
mov esi, eax
test esi, esi
mov dword [esp + 0x5c], esi
je 0x485cdf
mov ecx, dword [esp + 0x28]
call fcn.004d8ca0
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.004d8ca0
cmp dword [esp + 0x58], eax
je 0x485d06
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc eax
push 0
push 0
cmp eax, ecx
push 0
mov dword [esp + 0x18], eax
push 0
je 0x485c04
push 0x6dd94c
jmp 0x485c09
mov eax, dword [esp + 0x58]
xor esi, esi
test eax, eax
mov dword [esp + 0x30], esi
jle 0x485c0f
mov ecx, dword [esp + 0x28]
push esi
call fcn.0048fd00
cmp eax, dword [esp + 0x24]
jne 0x485e9a
mov ecx, dword [esp + 0x5c]
push esi
call fcn.0048fd00
mov esi, eax
test esi, esi
mov dword [esp + 0x34], esi
je 0x485d89
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
cmp ecx, 6
mov ecx, dword [esp + 0x24]
jne 0x485dbc
call fcn.004da3c0
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.004da3c0
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x485d89
mov eax, ecx
xor esi, esi
test eax, eax
jle 0x485d89
mov ecx, dword [esp + 0x24]
push esi
call fcn.0048ee80
cmp dword [esp + 0x1c], eax
je 0x485db0
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x485d70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
inc eax
push 0
push 0
cmp eax, ecx
push 0
mov dword [esp + 0x18], eax
push 0
je 0x485e8f
push 0x6dd94c
jmp 0x485e94
mov ecx, dword [esp + 0x34]
push esi
call fcn.0048ee80
jmp 0x485e01
call fcn.004d8830
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.004d8830
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x485d89
mov eax, ecx
xor esi, esi
test eax, eax
jle 0x485d89
mov ecx, dword [esp + 0x24]
push esi
call fcn.0048f180
cmp dword [esp + 0x1c], eax
je 0x485df7
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x485ddc
jmp 0x485d89
mov ecx, dword [esp + 0x34]
push esi
call fcn.0048f180
test eax, eax
je 0x485d89
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0xc8]
inc esi
push ecx
mov ecx, eax
mov dword [esp + 0x10], esi
call fcn.004ac900
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
fld qword [esp + 0x38]
fsub qword [esp + 0x60]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
fld qword [esp + 0x40]
fsub qword [esp + 0x68]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
cmp esi, eax
mov dword [esp + 0x48], edx
fmul qword [0x692698]
je 0x485e7d
sub esp, 8
fstp qword [esp]
sub esp, 8
fmul qword [0x692698]
fstp qword [esp]
push str._8.4lf___8.4lf
jmp 0x485e94
sub esp, 8
fstp qword [esp]
sub esp, 8
fmul qword [0x692698]
fstp qword [esp]
push str._8.4lf___8.4lf_n
push edi
call ebx
add esp, 0x18
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x58]
inc esi
cmp esi, eax
mov dword [esp + 0x30], esi
jl 0x485d18
jmp 0x485c0f