Function at 0x47ff80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2e58
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4e54b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x7c]
call fcn.004015f5
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jl 0x47ffce
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 4]
cmp ecx, dword [ebp + 8]
jg 0x47ffe9
mov byte [ebp - 0x7f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401811
mov al, byte [ebp - 0x7f]
jmp 0x48066a
imul edx, dword [ebp + 8], 0x3c
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
cmp dword [ecx + edx + 0x34], 0
jge 0x480015
mov byte [ebp - 0x6e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401811
mov al, byte [ebp - 0x6e]
jmp 0x48066a
lea ecx, [ebp - 0xfc]
mov edx, dword [ebp - 0x68]
add edx, 0xc
push edx
call fcn.00401cf8
mov dword [ebp - 0xe8], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.004018f7
lea edx, [ebp - 0x7c]
mov dword [ebp - 0xec], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.00401811
lea eax, [ebp - 0x10c]
push str.SAVE
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401c5d
mov dword [ebp - 0x144], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x7c]
call fcn.004018f7
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.00401811
imul ecx, dword [ebp + 8], 0x3c
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
cmp dword [eax + ecx + 0x34], 0xa
jge 0x480117
lea ecx, [ebp - 0x11c]
push 0x4c948c
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00401c5d
mov dword [ebp - 0x140], eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004018f7
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x100], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.00401811
imul edx, dword [ebp + 8], 0x3c
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + edx + 0x34]
push edx
lea ecx, [ebp - 0x154]
call fcn.0040191a
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xe0]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00401aa0
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.004018f7
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x12c]
call fcn.00401811
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.00401811
lea eax, [ebp - 0x13c]
push str..LCS
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401c5d
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x7c]
call fcn.004018f7
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00401811
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
push edx
call fcn.00401410
add esp, 4
movzx eax, al
test eax, eax
jne 0x480333
imul ecx, dword [ebp + 8], 0x3c
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
cmp dword [eax + ecx + 0x18], 0
je 0x4802a5
imul ecx, dword [ebp + 8], 0x3c
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov ecx, dword [eax + ecx + 0x18]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 0
je 0x480289
mov ecx, dword [ebp - 0x8c]
call fcn.00401d43
mov eax, 1
and eax, 1
je 0x48027b
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00489866
add esp, 4
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xb8], edx
jmp 0x480293
mov dword [ebp - 0xb8], 0
imul eax, dword [ebp + 8], 0x3c
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
mov dword [edx + eax + 0x18], 0
imul eax, dword [ebp + 8], 0x3c
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
lea eax, [edx + eax + 0x1c]
mov dword [ebp - 0xd0], eax
push 0x4c9489
mov ecx, dword [ebp - 0xd0]
call fcn.004018f7
imul ecx, dword [ebp + 8], 0x3c
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
lea ecx, [eax + ecx + 0x28]
mov dword [ebp - 0x98], ecx
push str.________:__
mov ecx, dword [ebp - 0x98]
call fcn.004018f7
mov edx, dword [ebp - 0x68]
movzx eax, byte [edx + 0x54]
test eax, eax
je 0x480309
imul ecx, dword [ebp + 8], 0x3c
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov byte [eax + ecx + 0x38], 1
jmp 0x480318
imul ecx, dword [ebp + 8], 0x3c
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov byte [eax + ecx + 0x38], 0
mov byte [ebp - 0x70], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401811
mov al, byte [ebp - 0x70]
jmp 0x48066a
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x9c], ecx
push 0x4c94a4
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0048af56
add esp, 8
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x48038e
push 0
push 0x4c94a8
push str.SaveFileOpen
push 0
call dword [0x502344]
mov byte [ebp - 0x7d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401811
mov al, byte [ebp - 0x7d]
jmp 0x48066a
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x28], 0
jle 0x48047e
mov ecx, dword [ebp - 0x68]
cmp dword [ecx + 0x2c], 0
jle 0x48047e
imul edx, dword [ebp + 8], 0x3c
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
cmp dword [ecx + edx + 0x18], 0
je 0x4803ce
imul edx, dword [ebp + 8], 0x3c
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + edx + 0x18]
call fcn.00401b8b
jmp 0x48042c
push 0x44
call fcn.004897f0
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x94], 0
je 0x4803fe
mov ecx, dword [ebp - 0x94]
call fcn.00401992
mov dword [ebp - 0x90], eax
jmp 0x480408
mov dword [ebp - 0x90], 0
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 0
imul eax, dword [ebp + 8], 0x3c
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0xa4]
mov dword [edx + eax + 0x18], ecx
push 0
mov edx, dword [ebp - 0x88]
push edx
imul eax, dword [ebp + 8], 0x3c
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + eax + 0x18]
call fcn.00401b13
movzx eax, al
test eax, eax
jne 0x48047e
push 0
push 0x4c94d8
push str.ThumbnailLoad
push 0
call dword [0x502344]
mov byte [ebp - 0x6f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401811
mov al, byte [ebp - 0x6f]
jmp 0x48066a
push 0x54
call fcn.004897f0
add esp, 4
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x88]
push edx
push 1
push 0x54
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0048ee90
add esp, 0x10
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 1
je 0x480520
cmp dword [ebp - 0x6c], 0
je 0x4804e2
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00489866
add esp, 4
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x88]
push eax
call fcn.0048ae1b
add esp, 4
push 0
push 0x4c9508
push str.SaveHeader
push 0
call dword [0x502344]
mov byte [ebp - 0x7e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401811
mov al, byte [ebp - 0x7e]
jmp 0x48066a
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.0048ae1b
add esp, 4
mov dword [ebp - 0x84], 0
jmp 0x48054a
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0x54
jae 0x48057c
mov eax, dword [ebp - 0x84]
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x84]
movsx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x84]
mov byte [edx], cl
jmp 0x48053b
push 0x54
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00489c00
add esp, 0xc
cmp dword [ebp - 0x6c], 0
je 0x4805b3
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0xc4]
push eax
call fcn.00489866
add esp, 4
mov dword [ebp - 0x6c], 0
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x50]
test eax, eax
jne 0x4805d9
imul ecx, dword [ebp + 8], 0x3c
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
lea ecx, [eax + ecx + 0x1c]
call fcn.00401131
jmp 0x4805fc
imul ecx, dword [ebp + 8], 0x3c
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
lea ecx, [eax + ecx + 0x1c]
mov dword [ebp - 0xcc], ecx
lea edx, [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0xcc]
call fcn.004018f7
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x1f]
test edx, edx
jne 0x480622
imul eax, dword [ebp + 8], 0x3c
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
lea ecx, [edx + eax + 0x28]
call fcn.00401131
jmp 0x480645
imul eax, dword [ebp + 8], 0x3c
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
lea eax, [edx + eax + 0x28]
mov dword [ebp - 0xd4], eax
lea ecx, [ebp - 0x1f]
push ecx
mov ecx, dword [ebp - 0xd4]
call fcn.004018f7
imul edx, dword [ebp + 8], 0x3c
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
mov byte [ecx + edx + 0x38], 1
mov byte [ebp - 0x6d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401811
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a893
mov esp, ebp
pop ebp
ret 4