Function at 0x100ce7f0
Capabilities:
Execute command

Disassembly:
sub esp, 0x324
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x320], eax
mov eax, dword [esp + 0x334]
push ebx
mov ebx, 1
push esi
mov esi, dword [esp + 0x330]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x340], ebx
jne 0x100ceb2e
test esi, esi
je 0x100cea1a
mov eax, dword [0x10184238]
cmp eax, ebx
je 0x100ce84e
cmp eax, 2
je 0x100ce84e
cmp eax, 3
je 0x100ce84e
cmp eax, 4
jne 0x100cea1a
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push esi
call sym.leptonlib.dll_pixGetDimensions
add esp, 0x10
cmp dword [esp + 0x10], 0x3e8
jg 0x100ce93c
cmp dword [esp + 0x14], 0x320
jg 0x100ce93c
cmp dword [esp + 0x18], 0x10
jne 0x100ce92e
push ebx
push esi
call sym.leptonlib.dll_pixConvert16To8
add esp, 8
mov dword [esp + 8], eax
cmp dword [0x10185d70], 0
push ebp
mov ebp, dword [sym.imp.MSVCR90.dll_system]
push edi
mov edi, dword [sym.imp.MSVCR90.dll__snprintf]
jne 0x100ce8d1
push str.rm__f__tmp_junk_display.
lea ecx, [esp + 0x30]
push 0x200
push ecx
call edi
lea edx, [esp + 0x38]
push edx
call ebp
mov eax, dword [esp + 0x20]
add esp, 0x10
add dword [0x10185d70], ebx
push eax
call sym.leptonlib.dll_numaGetRefcount
add esp, 4
cmp eax, 8
jl 0x100cea33
mov eax, 0xc8
cmp dword [esp + 0x18], eax
jge 0x100ce8fe
cmp dword [esp + 0x1c], eax
jl 0x100cea33
mov eax, dword [0x10185d70]
push eax
push 0x1014a568
lea ecx, [esp + 0x34]
push 0x200
push ecx
call edi
mov edx, dword [esp + 0x20]
push 2
push edx
lea eax, [esp + 0x44]
push eax
call sym.leptonlib.dll_pixWrite
add esp, 0x1c
jmp 0x100cea8b
push esi
call sym.leptonlib.dll_boxClone
add esp, 4
jmp 0x100ce897
fild dword [esp + 0x10]
fdivr qword [0x10146f58]
fstp dword [esp + 0xc]
fild dword [esp + 0x14]
fdivr qword [0x1014a560]
fstp dword [esp + 0x20]
fld dword [esp + 0xc]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x100ce96d
fstp st(0)
jmp 0x100ce96f
fstp st(1)
mov ecx, dword [esp + 0x18]
fstp dword [esp + 0xc]
fld dword [0x10148320]
fld dword [esp + 0xc]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x100ce99d
cmp ecx, ebx
jne 0x100ce99d
push esi
fstp st(0)
call sym.leptonlib.dll_pixScaleToGray8
add esp, 4
jmp 0x100cea0e
fld dword [0x1014386c]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100ce9bd
cmp ecx, ebx
jne 0x100ce9bd
push esi
fstp st(0)
call sym.leptonlib.dll_pixScaleToGray4
add esp, 4
jmp 0x100cea0e
fcom qword [0x1014a558]
fnstsw ax
test ah, 5
jp 0x100ce9db
cmp ecx, ebx
jne 0x100ce9db
push esi
fstp st(0)
call sym.leptonlib.dll_pixScaleToGray3
add esp, 4
jmp 0x100cea0e
fld dword [0x10142f34]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x100ce9fb
cmp ecx, ebx
jne 0x100ce9fb
push esi
fstp st(0)
call sym.leptonlib.dll_pixScaleToGray2
add esp, 4
jmp 0x100cea0e
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push esi
call sym.leptonlib.dll_pixScale
add esp, 0xc
mov dword [esp + 8], eax
test eax, eax
jne 0x100ce89b
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.101407ce
add esp, 0x324
ret
mov ecx, dword [0x10185d70]
push ecx
push str._tmp_junk_display._03d.png
lea edx, [esp + 0x34]
push 0x200
push edx
call edi
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x100cea8b
lea eax, [esp + 0x2c]
push 0x101435a0
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x100cea8b
fldz
push ecx
fstp dword [esp]
push ebx
push esi
call sym.leptonlib.dll_pixWriteStreamPng
add esp, 0xc
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
call sym.leptonlib.dll_stringNew
mov esi, eax
push 0x104
lea edx, [esp + 0x234]
push esi
push edx
call dword [sym.imp.MSVCR90.dll__fullpath]
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
je 0x100ceae5
mov ecx, dword [esp + 0x33c]
push eax
mov eax, dword [esp + 0x344]
push eax
push ecx
lea edx, [esp + 0x238]
push edx
push str.i_view32.exe___s___pos__d__d___title__s_
lea eax, [esp + 0x40]
push 0x200
push eax
call edi
add esp, 0x1c
jmp 0x100ceb11
mov ecx, dword [esp + 0x340]
mov edx, dword [esp + 0x33c]
push ecx
push edx
lea eax, [esp + 0x234]
push eax
push str.i_view32.exe___s___pos__d__d_
lea ecx, [esp + 0x3c]
push 0x200
push ecx
call edi
add esp, 0x18
lea edx, [esp + 0x2c]
push edx
call ebp
lea eax, [esp + 0x14]
push eax
call sym.leptonlib.dll_pixDestroy
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
pop edi
pop ebp
mov ecx, dword [esp + 0x328]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.101407ce
add esp, 0x324
ret