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

Disassembly:
push 0xa88
mov eax, 0x101ae561
call fcn.10178db5
mov ebx, ecx
mov dword [ebp - 0xa60], ebx
cmp dword [ebx + 0x28], 0
mov esi, dword [ebp + 8]
je 0x1007896d
xor eax, eax
jmp 0x10078dd8
test esi, esi
je 0x10078de0
lea eax, [ebx + 0x8c]
push eax
call fcn.1004a289
push esi
lea ecx, [ebp - 0xa2c]
call fcn.10044052
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa2c]
push 0
push 0x101c0040
call fcn.10052edd
cmp eax, 0xffffffff
jne 0x10078a8d
xor edi, edi
lea ecx, [ebp - 0xa2c]
push edi
push 0x101cba14
call fcn.10052edd
cmp eax, 0xffffffff
jne 0x10078a8d
push edi
push 0x101c5498
lea ecx, [ebp - 0xa2c]
call fcn.10052edd
cmp eax, 0xffffffff
jne 0x10078a8d
push 0x104
lea eax, [ebp - 0xa28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10078a8d
xor eax, eax
mov edi, 0x100
push eax
push eax
push eax
push eax
push edi
lea eax, [ebp - 0x820]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa28]
push eax
call fcn.1018fb04
push edi
lea eax, [ebp - 0x420]
push eax
push edi
lea eax, [ebp - 0x620]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push esi
call fcn.1018fb04
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.1018f8ab
lea eax, [ebp - 0x220]
push eax
call fcn.1018bb4e
add esp, 0x1c
lea ecx, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10044a5d
cmp dword [ebp + 0xc], 0
jbe 0x10078ad9
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 edi, eax
cmp edi, 0xffffffff
je 0x10078ad9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp + 0xc]
jbe 0x10078ad9
mov ecx, dword [ebp - 0xa2c]
lea ecx, [ecx - 0x10]
call fcn.10044a0c
jmp 0x10078966
mov esi, dword [ebx + 0x34]
mov edi, dword [ebp - 0xa2c]
call fcn.10045f3b
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 edi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
lea esi, [ebx + 0x8c]
mov dword [esi], eax
test eax, eax
je 0x10078ac6
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 0x10078b37
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
and dword [esi], 0
jmp 0x10078ac6
xor edi, edi
lea eax, [ebp - 0xa2c]
inc edi
lea ecx, [ebx + 0x98]
push eax
mov dword [ebx + 0x18], edi
call fcn.100468dd
push dword [ebp - 0xa2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10078b62
mov dword [ebx + 0x24], edi
movzx eax, word [ebp - 0xa82]
mov dword [ebx + 8], eax
add eax, 0xfffffff7
cmp eax, 0x16
ja 0x10078d8e
cmp dword [esi], 0
je 0x10078d8e
lea ecx, [ebp - 0xa48]
call fcn.10053c35
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0xa48]
call fcn.10054787
lea eax, [ebp - 0xa7c]
push eax
push 0x18
pop eax
push eax
push dword [esi]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x10078d7f
cmp dword [esi], 0
je 0x10078d7f
push dword [esi]
push dword [ebp - 0xa44]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
test edi, edi
je 0x10078d7f
mov eax, dword [ebp - 0xa74]
mov ecx, dword [ebp - 0xa78]
push eax
push ecx
push dword [ebp - 0xa44]
mov dword [ebp - 0xa30], ecx
mov dword [ebp - 0xa4c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xa34], eax
test eax, eax
jne 0x10078c22
push edi
push dword [ebp - 0xa44]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x10078d7f
lea ecx, [ebp - 0xa5c]
call fcn.10053c35
push dword [ebp - 0xa44]
mov byte [ebp - 4], 2
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0xa5c]
call fcn.10054787
push dword [ebp - 0xa34]
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x10078c80
push edi
push dword [ebp - 0xa44]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0xa34]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10078d74
push 0xcc0020
xor eax, eax
push eax
push eax
push dword [ebp - 0xa44]
push dword [ebp - 0xa4c]
push dword [ebp - 0xa30]
push eax
push eax
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_BitBlt]
and dword [ebp - 0xa38], 0
mov eax, dword [ebp - 0xa30]
test eax, eax
jle 0x10078d48
mov ebx, dword [ebp - 0xa38]
mov dword [ebp - 0xa64], edi
mov edi, dword [ebp - 0xa4c]
xor esi, esi
test edi, edi
jle 0x10078d31
push esi
push ebx
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_GetPixel]
push 0x18
pop ecx
mov dword [ebp - 0xa38], eax
cmp word [ebp - 0xa6a], cx
jne 0x10078d07
cmp dword [0x1021f5f0], 0
jne 0x10078d07
push eax
call fcn.10079484
jmp 0x10078d0f
push 0
push eax
call fcn.100793dc
cmp dword [ebp - 0xa38], eax
je 0x10078d26
push eax
push esi
push ebx
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_SetPixel]
inc esi
cmp esi, edi
jl 0x10078cd6
mov eax, dword [ebp - 0xa30]
inc ebx
cmp ebx, eax
jl 0x10078cd0
mov ebx, dword [ebp - 0xa60]
mov edi, dword [ebp - 0xa64]
lea esi, [ebx + 0x8c]
push dword [ebp - 0x18]
push dword [ebp - 0xa58]
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push dword [ebp - 0xa44]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0xa34]
mov dword [esi], eax
lea ecx, [ebp - 0xa5c]
call fcn.10053da7
lea ecx, [ebp - 0xa48]
mov byte [ebp - 4], 0
call fcn.10053da7
cmp word [ebp - 0xa82], 0x20
jb 0x10078da2
push dword [ebx + 0x3c]
push dword [esi]
call fcn.10079d31
mov ecx, ebx
call fcn.1007aa3f
lea esi, [ebx + 0x90]
push esi
call fcn.1004a289
and dword [esi], 0
lea esi, [ebx + 0x94]
push esi
call fcn.1004a289
mov ecx, dword [ebp - 0xa2c]
and dword [esi], 0
add ecx, 0xfffffff0
call fcn.10044a0c
xor eax, eax
inc eax
call fcn.10178d64
ret 8
call fcn.10043e16
int3