Function at 0x1005cfdd
Capabilities:
Get file attributes
Get file size

Disassembly:
push 0xa88
mov eax, 0x1018ea95
call fcn.101687e5
mov edi, ecx
mov dword [ebp - 0xa60], edi
cmp dword [edi + 0x28], 0
mov esi, dword [ebp + 8]
je 0x1005d004
xor eax, eax
jmp 0x1005d480
test esi, esi
je 0x1005d488
lea ebx, [edi + 0x8c]
push ebx
call fcn.10040889
push esi
lea ecx, [ebp - 0xa2c]
call fcn.10022ca0
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa2c]
push 0
push 0x101d1e2c
call fcn.100313e5
cmp eax, 0xffffffff
jne 0x1005d129
push 0
push 0x101d2114
lea ecx, [ebp - 0xa2c]
call fcn.100313e5
cmp eax, 0xffffffff
jne 0x1005d129
push 0
push 0x1019ed2c
lea ecx, [ebp - 0xa2c]
call fcn.100313e5
cmp eax, 0xffffffff
jne 0x1005d129
push 0x104
lea eax, [ebp - 0xa28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1005d129
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100
lea eax, [ebp - 0x820]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa28]
push eax
call fcn.10178fd5
mov ecx, 0x100
lea eax, [ebp - 0x420]
push ecx
push eax
push ecx
lea eax, [ebp - 0x620]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call fcn.10178fd5
add esp, 0x48
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.10178da0
lea eax, [ebp - 0x220]
push eax
call fcn.10174fd9
add esp, 0x1c
lea ecx, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10023170
cmp dword [ebp + 0xc], 0
jbe 0x1005d17e
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa30], eax
cmp eax, 0xffffffff
je 0x1005d17e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xa30]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp + 0xc]
jbe 0x1005d17e
mov ecx, dword [ebp - 0xa2c]
lea ecx, [ecx - 0x10]
call fcn.10013840
jmp 0x1005cffd
mov esi, dword [edi + 0x34]
call fcn.1002f6f2
neg esi
sbb esi, esi
xor ecx, ecx
mov eax, dword [eax + 8]
and esi, 0x1000
add esi, 0x2010
push esi
push ecx
push ecx
push ecx
push dword [ebp - 0xa2c]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebx], eax
test eax, eax
je 0x1005d16b
lea ecx, [ebp - 0xa94]
push ecx
push 0x18
pop ecx
push ecx
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
jne 0x1005d1d5
push dword [ebx]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [ebx], 0
jmp 0x1005d16b
xor esi, esi
lea eax, [ebp - 0xa2c]
inc esi
lea ecx, [edi + 0x98]
push eax
mov dword [edi + 0x18], esi
call fcn.1002c54d
push dword [ebp - 0xa2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1005d200
mov dword [edi + 0x24], esi
movzx eax, word [ebp - 0xa82]
mov dword [edi + 8], eax
push 0x20
pop esi
cmp eax, 8
jbe 0x1005d434
cmp eax, esi
jae 0x1005d434
cmp dword [ebx], 0
je 0x1005d434
lea ecx, [ebp - 0xa4c]
call fcn.1002c79f
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0xa4c]
call fcn.1002d0f2
lea eax, [ebp - 0xa7c]
push eax
push 0x18
pop eax
push eax
push dword [ebx]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x1005d425
cmp dword [ebx], 0
je 0x1005d425
push dword [ebx]
push dword [ebp - 0xa48]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
test esi, esi
je 0x1005d425
mov eax, dword [ebp - 0xa74]
mov ecx, dword [ebp - 0xa78]
push eax
push ecx
push dword [ebp - 0xa48]
mov dword [ebp - 0xa34], ecx
mov dword [ebp - 0xa30], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xa38], eax
test eax, eax
jne 0x1005d2c8
push esi
push dword [ebp - 0xa48]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x1005d425
lea ecx, [ebp - 0xa5c]
call fcn.1002c79f
push dword [ebp - 0xa48]
mov byte [ebp - 4], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0xa5c]
call fcn.1002d0f2
push dword [ebp - 0xa38]
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1005d326
push esi
push dword [ebp - 0xa48]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0xa38]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x1005d41a
push 0xcc0020
xor eax, eax
push eax
push eax
push dword [ebp - 0xa48]
push dword [ebp - 0xa30]
push dword [ebp - 0xa34]
push eax
push eax
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_BitBlt]
and dword [ebp - 0xa3c], 0
mov eax, dword [ebp - 0xa34]
test eax, eax
jle 0x1005d3ee
mov edi, dword [ebp - 0xa3c]
mov dword [ebp - 0xa64], esi
mov esi, dword [ebp - 0xa30]
xor ebx, ebx
test esi, esi
jle 0x1005d3d7
push ebx
push edi
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_GetPixel]
push 0x18
pop ecx
mov dword [ebp - 0xa3c], eax
cmp word [ebp - 0xa6a], cx
jne 0x1005d3ad
cmp dword [0x101f64c0], 0
jne 0x1005d3ad
push eax
call fcn.1005db23
jmp 0x1005d3b5
push 0
push eax
call fcn.1005da98
cmp dword [ebp - 0xa3c], eax
je 0x1005d3cc
push eax
push ebx
push edi
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_SetPixel]
inc ebx
cmp ebx, esi
jl 0x1005d37c
mov eax, dword [ebp - 0xa34]
inc edi
cmp edi, eax
jl 0x1005d376
mov edi, dword [ebp - 0xa60]
mov esi, dword [ebp - 0xa64]
lea ebx, [edi + 0x8c]
push dword [ebp - 0x18]
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push dword [ebp - 0xa48]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0xa38]
mov dword [ebx], eax
lea ecx, [ebp - 0xa5c]
call fcn.1002c8fb
lea ecx, [ebp - 0xa4c]
mov byte [ebp - 4], 0
call fcn.1002c8fb
push 0x20
pop eax
cmp word [ebp - 0xa82], ax
jb 0x1005d44a
push dword [edi + 0x3c]
push dword [ebx]
call fcn.1005e475
mov ecx, edi
call fcn.1005f2d7
lea esi, [edi + 0x90]
push esi
call fcn.10040889
and dword [esi], 0
lea esi, [edi + 0x94]
push esi
call fcn.10040889
mov ecx, dword [ebp - 0xa2c]
and dword [esi], 0
add ecx, 0xfffffff0
call fcn.10013840
xor eax, eax
inc eax
call fcn.1016878f
ret 8
call fcn.1002c0ba
int3