Function at 0x100c9320
Capabilities:
Execute command

Disassembly:
sub esp, 0x26c
mov eax, dword [0x10185cf0]
xor eax, esp
mov dword [esp + 0x268], eax
movzx ecx, word [0x1014a1d4]
movzx edx, byte [0x1014a1d6]
mov eax, dword [str._html_]
push ebp
mov ebp, dword [esp + 0x278]
mov word [esp + 0x54], cx
mov ecx, dword [0x1014a1c0]
mov byte [esp + 0x56], dl
mov edx, dword [0x1014a1c4]
mov dword [esp + 0x50], eax
mov eax, dword [str.__frameset___html_]
push esi
mov esi, dword [esp + 0x278]
mov dword [esp + 0x60], ecx
movzx ecx, word [0x1014a1cc]
mov dword [esp + 0x64], edx
movzx edx, byte [0x1014a1ce]
push edi
mov edi, dword [esp + 0x284]
mov dword [esp + 0x60], eax
mov eax, dword [0x1014a1c8]
mov dword [esp + 0x54], esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x6c], eax
mov word [esp + 0x70], cx
mov byte [esp + 0x72], dl
test esi, esi
jne 0x100c93d6
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.101407ce
add esp, 0x26c
ret
test ebp, ebp
je 0x100c93b9
test edi, edi
je 0x100c93b9
mov eax, dword [esp + 0x288]
test eax, eax
jne 0x100c93f6
mov dword [esp + 0x288], 0x78
jmp 0x100c9406
cmp eax, 0x32
jge 0x100c9406
mov dword [esp + 0x288], 0x32
mov eax, dword [esp + 0x28c]
test eax, eax
jne 0x100c941e
mov dword [esp + 0x28c], 0x320
jmp 0x100c9430
cmp eax, 0x12c
jge 0x100c9430
mov dword [esp + 0x28c], 0x12c
push ebx
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
push ebp
lea eax, [esp + 0x7c]
push str.mkdir__p__s
push eax
call ebx
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.MSVCR90.dll_system]
push esi
call sym.leptonlib.dll_getFilenamesInDirectory
add esp, 0x14
mov dword [esp + 0x30], eax
test eax, eax
je 0x100c985f
push edi
push ebp
lea edx, [esp + 0x80]
push str._s__s.html
push edx
call ebx
lea eax, [esp + 0x88]
push eax
call sym.leptonlib.dll_stringNew
push edi
push ebp
lea ecx, [esp + 0x94]
push str._s__s_links.html
push ecx
mov dword [esp + 0x4c], eax
call ebx
lea edx, [esp + 0x9c]
push edx
call sym.leptonlib.dll_stringNew
push str._links.html
push edi
mov dword [esp + 0x80], eax
call sym.leptonlib.dll_stringJoin
xor edi, edi
push edi
mov dword [esp + 0x80], eax
call sym.leptonlib.dll_sarrayCreate
add esp, 0x34
mov dword [esp + 0x24], eax
cmp eax, edi
je 0x100c985f
push edi
call sym.leptonlib.dll_sarrayCreate
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x100c985f
mov eax, dword [esp + 0x30]
push eax
call sym.leptonlib.dll_lheapGetCount
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], edi
cmp eax, edi
mov edi, dword [sym.imp.MSVCR90.dll_free]
mov dword [esp + 0x54], eax
jle 0x100c9735
jmp 0x100c9524
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push 0
push ecx
push edx
call sym.leptonlib.dll_sarrayGetString
mov ebp, eax
push ebp
push esi
call sym.leptonlib.dll_genPathname
add esp, 0x14
mov esi, eax
push esi
push str.name:__s_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push esi
call sym.leptonlib.dll_pixRead
add esp, 0x10
mov dword [esp + 0x14], eax
push esi
test eax, eax
jne 0x100c958b
push str.file__s_not_a_readable_image_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push esi
call edi
add esp, 0x10
jmp 0x100c9722
call edi
add esp, 4
cmp dword [esp + 0x294], 0
je 0x100c95ba
mov eax, dword [esp + 0x3c]
push ebp
push eax
call sym.leptonlib.dll_genPathname
mov ecx, dword [esp + 0x1c]
push 2
mov esi, eax
push ecx
push esi
call sym.leptonlib.dll_pixWrite
push esi
call edi
add esp, 0x18
mov edx, dword [esp + 0x14]
push edx
call sym.leptonlib.dll_pixGetWidth
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x20]
fild dword [esp + 0x290]
fdiv dword [esp + 0x20]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fst dword [esp]
push ecx
fstp dword [esp]
push eax
call sym.leptonlib.dll_pixScale
add esp, 0xc
mov dword [esp + 0x40], eax
test eax, eax
je 0x100c985f
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push ebp
push ecx
lea edx, [esp + 0x80]
push str._s_thumb__03d.jpg
push edx
call ebx
mov ecx, dword [esp + 0x34]
push 1
lea eax, [esp + 0x8c]
push eax
push ecx
call sym.leptonlib.dll_sarrayAddString
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x94]
push edx
push eax
call sym.leptonlib.dll_genPathname
mov ecx, dword [esp + 0x64]
push 2
mov esi, eax
push ecx
push esi
call sym.leptonlib.dll_pixWrite
push esi
call edi
lea edx, [esp + 0x74]
push edx
call sym.leptonlib.dll_pixDestroy
fild dword [esp + 0x2c8]
add esp, 0x38
fdiv dword [esp + 0x1c]
fstp dword [esp + 0x34]
fld1
fld dword [esp + 0x34]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x100c9696
mov eax, dword [esp + 0x14]
fstp st(0)
push eax
call sym.leptonlib.dll_boxClone
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x100c96b9
mov ecx, dword [esp + 0x14]
sub esp, 8
fst dword [esp + 4]
fstp dword [esp]
push ecx
call sym.leptonlib.dll_pixScale
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
je 0x100c985f
mov edx, dword [esp + 0x44]
push ebp
push edx
lea eax, [esp + 0x80]
push str._s_view__03d.jpg
push eax
call ebx
mov edx, dword [esp + 0x28]
push 1
lea ecx, [esp + 0x8c]
push ecx
push edx
call sym.leptonlib.dll_sarrayAddString
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x94]
push eax
push ecx
call sym.leptonlib.dll_genPathname
mov edx, dword [esp + 0x44]
push 2
mov esi, eax
push edx
push esi
call sym.leptonlib.dll_pixWrite
push esi
call edi
lea eax, [esp + 0x54]
push eax
call sym.leptonlib.dll_pixDestroy
lea ecx, [esp + 0x4c]
push ecx
call sym.leptonlib.dll_pixDestroy
add esp, 0x3c
inc ebp
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x38], eax
jl 0x100c9520
push 0
call sym.leptonlib.dll_sarrayCreate
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x100c985f
push 1
lea edx, [esp + 0x60]
push edx
push eax
call sym.leptonlib.dll_sarrayAddString
mov eax, dword [esp + 0x298]
add eax, 0x1e
push eax
lea ecx, [esp + 0x88]
push str._frameset_cols__d____
push ecx
call ebx
mov eax, dword [esp + 0x28]
push 1
lea edx, [esp + 0x94]
push edx
push eax
call sym.leptonlib.dll_sarrayAddString
mov ecx, dword [esp + 0x70]
push ecx
lea edx, [esp + 0xa0]
push str._frame_name_thumbs__src__s__
push edx
call ebx
mov ecx, dword [esp + 0x40]
push 1
lea eax, [esp + 0xac]
push eax
push ecx
call sym.leptonlib.dll_sarrayAddString
mov edx, dword [esp + 0x54]
push 0
push 0
push edx
call sym.leptonlib.dll_sarrayGetString
add esp, 0x48
push eax
lea eax, [esp + 0x7c]
push str._frame_name_views__src__s__
push eax
call ebx
mov edx, dword [esp + 0x1c]
push 1
lea ecx, [esp + 0x88]
push ecx
push edx
call sym.leptonlib.dll_sarrayAddString
mov ecx, dword [esp + 0x28]
push 1
lea eax, [esp + 0x80]
push eax
push ecx
call sym.leptonlib.dll_sarrayAddString
mov edx, dword [esp + 0x34]
push 1
push edx
call sym.leptonlib.dll_sarrayToString
add esp, 0x2c
mov esi, eax
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c9808
sub eax, ebp
mov ebp, dword [esp + 0x28]
push eax
push esi
push 0x101432bc
push ebp
call sym.leptonlib.dll_arrayWrite
push esi
call edi
push ebp
call edi
mov eax, dword [esp + 0x30]
push eax
call sym.leptonlib.dll_lheapGetCount
add esp, 0x1c
mov ebp, eax
push ebp
push str.num._images___d_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
push 0
call sym.leptonlib.dll_sarrayCreate
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100c9869
mov eax, 1
jmp 0x100c9931
xor esi, esi
test ebp, ebp
jle 0x100c98c3
nop
mov ecx, dword [esp + 0x18]
push 0
push esi
push ecx
call sym.leptonlib.dll_sarrayGetString
mov edx, dword [esp + 0x30]
push 0
push esi
push edx
mov dword [esp + 0x40], eax
call sym.leptonlib.dll_sarrayGetString
push eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x98]
push str._a_href__s__TARGETviews__img_src__s____a_
push ecx
call ebx
mov eax, dword [esp + 0x54]
push 1
lea edx, [esp + 0xa4]
push edx
push eax
call sym.leptonlib.dll_sarrayAddString
inc esi
add esp, 0x34
cmp esi, ebp
jl 0x100c9870
mov eax, dword [esp + 0x2c]
push 1
push eax
call sym.leptonlib.dll_sarrayToString
add esp, 8
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100c98d3
mov ebx, dword [esp + 0x50]
sub eax, edx
push eax
push esi
push 0x101432bc
push ebx
call sym.leptonlib.dll_arrayWrite
push esi
call edi
push ebx
call edi
mov ecx, dword [esp + 0x64]
push ecx
call edi
lea edx, [esp + 0x4c]
push edx
call sym.leptonlib.dll_sarrayDestroy
lea eax, [esp + 0x44]
push eax
call sym.leptonlib.dll_sarrayDestroy
lea ecx, [esp + 0x3c]
push ecx
call sym.leptonlib.dll_sarrayDestroy
lea edx, [esp + 0x38]
push edx
call sym.leptonlib.dll_sarrayDestroy
lea eax, [esp + 0x58]
push eax
call sym.leptonlib.dll_sarrayDestroy
add esp, 0x30
xor eax, eax
mov ecx, dword [esp + 0x278]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.101407ce
add esp, 0x26c
ret