Function at 0x1005d1d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10299b35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test eax, eax
je 0x1005d6b0
mov ebx, dword [eax]
mov esi, 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x1005d690
cmp dword [ebx + 0x6c], 0
mov dword [ebp - 0x1c], ebx
je 0x1005d455
cmp dword [ebx + 0x8c], 0
je 0x1005d455
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov eax, dword [str.fispool]
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x58], eax
mov ax, word [0x103e97a0]
mov word [ebp - 0x54], ax
mov al, byte [0x103e97a2]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 7
mov byte [ebp - 0x52], al
mov byte [ebp - 0x51], 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
lea edi, [ebx + 0x7c]
push eax
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.1005c450
mov ecx, dword [ebp - 0x44]
add esp, 4
cmp ecx, 0x10
jb 0x1005d2ce
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005d2c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d6c5
push ecx
push edx
call fcn.1026a022
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0x103e6b44
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10277843
mov esi, eax
add esp, 8
test esi, esi
jne 0x1005d31d
cmp dword [ebp - 0x2c], 0x10
lea esi, [ebp - 0x40]
cmovae esi, dword [ebp - 0x40]
call fcn.1027d23d
push dword [eax]
call fcn.1027d31d
push eax
push esi
push str.Failed_to_open__s___s
push dword [ebx + 4]
call sym.FreeImage32.dll_FreeImage_OutputMessageProc
add esp, 0x14
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x1005d375
push dword [ebp + 0xc]
lea eax, [ebx + 8]
push esi
push eax
push dword [ebp + 8]
push dword [ebx + 4]
call sym.FreeImage32.dll__FreeImage_SaveMultiBitmapToHandle_20
push esi
mov dword [ebp - 0x14], eax
call fcn.102779c6
add esp, 4
test eax, eax
je 0x1005d372
xor eax, eax
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], eax
cmovae esi, dword [ebp - 0x40]
call fcn.1027d23d
push dword [eax]
call fcn.1027d31d
push eax
push esi
push str.Failed_to_close__s___s
push dword [ebx + 4]
call sym.FreeImage32.dll_FreeImage_OutputMessageProc
add esp, 0x14
xor esi, esi
jmp 0x1005d375
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1005d385
push eax
call fcn.102779c6
add esp, 4
test esi, esi
je 0x1005d3f0
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1005d393
mov eax, dword [edi]
push eax
call fcn.1027d088
add esp, 4
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x1005d3a6
mov ecx, dword [edi]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.1027d0f2
xor ecx, ecx
add esp, 8
test eax, eax
sete cl
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x1005d404
cmp dword [edi + 0x14], 0x10
jb 0x1005d3d1
mov edi, dword [edi]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push edi
cmovae eax, dword [ebp - 0x40]
push eax
push str.Failed_to_rename__s_to__s
push dword [ebx + 4]
call sym.FreeImage32.dll_FreeImage_OutputMessageProc
add esp, 0x10
jmp 0x1005d404
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.1027d088
add esp, 4
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x1005d46e
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005d42e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005d6c5
push ecx
push edx
call fcn.1026a022
add esp, 8
jmp 0x1005d46e
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x1005d46e
cmp dword [ebx + 0x8c], 0
je 0x1005d46e
push ecx
call fcn.102779c6
add esp, 4
cmp dword [ebx + 0x68], 0
je 0x1005d682
lea esi, [ebx + 0x64]
mov dword [ebp - 0x18], esi
nop
mov eax, dword [esi]
mov eax, dword [eax]
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x1005d597
mov eax, dword [ebx]
test eax, eax
je 0x1005d58e
cmp dword [eax + 0x118], 0
je 0x1005d4b3
push dword [eax + 0x118]
call fcn.10270662
add esp, 4
mov eax, dword [ebx]
mov esi, dword [eax + 0x11c]
mov dword [ebp - 0x24], esi
mov ecx, dword [esi]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
cmp eax, ecx
je 0x1005d562
nop dword [eax]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x1005d54c
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov dword [ebp + 0xc], eax
cmp eax, ecx
je 0x1005d52d
mov esi, dword [eax + 0x28]
test esi, esi
je 0x1005d519
mov edi, dword [esi]
test edi, edi
je 0x1005d510
push dword [edi]
call fcn.10270662
push dword [edi + 4]
call fcn.10270662
push dword [edi + 0x14]
call fcn.10270662
push dword [esi]
call fcn.10270662
add esp, 0x10
push esi
call fcn.10270662
add esp, 4
lea ecx, [ebp + 0xc]
call fcn.10004970
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jne 0x1005d4e2
mov esi, dword [ebp - 0x24]
push dword [ecx + 4]
mov ecx, ebx
push ebx
call fcn.10005180
push 0x2c
push dword [ebx]
call fcn.1026a022
push 8
push ebx
call fcn.1026a022
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.100049d0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [esi]
jne 0x1005d4d0
mov ebx, dword [ebp - 0x28]
mov ecx, esi
call fcn.10004620
push 8
push esi
call fcn.1026a022
mov eax, dword [ebx]
add esp, 8
push dword [eax + 0x124]
call sym.FreeImage32.dll__FreeImage_Unload_4
push dword [ebx]
call fcn.102705e3
mov esi, dword [ebp - 0x18]
add esp, 4
push ebx
call fcn.10270662
add esp, 4
mov edi, dword [esi]
mov esi, edi
mov dword [ebp - 0x28], edi
mov ebx, dword [edi + 4]
mov ecx, ebx
mov eax, dword [edi]
mov dl, byte [ecx + 0xd]
mov byte [ebp + 0xf], dl
test dl, dl
jne 0x1005d5d3
nop
mov edx, dword [ecx + 0x10]
cmp edx, dword [eax + 0x10]
jae 0x1005d5bd
mov ecx, dword [ecx + 8]
jmp 0x1005d5cd
cmp byte [edi + 0xd], 0
je 0x1005d5c9
cmp dword [eax + 0x10], edx
cmovb edi, ecx
mov esi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x1005d5b0
cmp byte [edi + 0xd], 0
mov ecx, ebx
jne 0x1005d5dd
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x1005d5fa
mov edx, dword [eax + 0x10]
cmp edx, dword [ecx + 0x10]
jae 0x1005d5f1
mov edi, ecx
mov ecx, dword [ecx]
jmp 0x1005d5f4
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x1005d5e6
mov dword [ebp - 0x1c], esi
cmp esi, eax
jne 0x1005d644
cmp byte [edi + 0xd], 0
je 0x1005d644
cmp byte [ebp + 0xf], 0
mov esi, dword [ebp - 0x18]
jne 0x1005d630
push dword [ebx + 8]
mov ecx, esi
push esi
call fcn.1005eb50
mov eax, ebx
mov ebx, dword [ebx]
push 0x18
push eax
call fcn.1026a022
add esp, 8
cmp byte [ebx + 0xd], 0
je 0x1005d610
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [eax + 8], eax
mov dword [esi + 4], 0
jmp 0x1005d675
cmp esi, edi
je 0x1005d672
mov ebx, dword [ebp - 0x18]
nop dword [eax + eax]
lea ecx, [ebp - 0x1c]
call fcn.1005e600
push esi
mov ecx, ebx
call fcn.1005e660
push 0x18
push eax
call fcn.1026a022
mov esi, dword [ebp - 0x1c]
add esp, 8
cmp esi, edi
jne 0x1005d650
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x20]
cmp dword [ebx + 0x68], 0
jne 0x1005d480
push ecx
mov ecx, ebx
call fcn.1005d6d0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push 4
push eax
call fcn.1026a022
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.10270999
int3