Function at 0x42c448
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb8
or dword [ebp + 0x64], 0xffffffff
or dword [ebp + 0x4c], 0xffffffff
push ebx
xor ebx, ebx
cmp dword [0x4679e4], ebx
push esi
push edi
mov edi, eax
mov dword [ebp + 0x6c], 0x1f4
mov dword [ebp + 0x68], 0x190
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], 0x50000001
mov dword [ebp + 0x50], 0x88c00000
mov dword [ebp + 0x58], 8
je 0x42c4cc
mov eax, dword [0x4679e8]
cmp eax, ebx
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x42c4a8
push eax
call esi
mov dword [0x4679e8], ebx
mov eax, dword [0x4679e0]
cmp eax, ebx
je 0x42c4ba
push eax
call esi
mov dword [0x4679e0], ebx
push dword [0x4679e4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x4679e4], ebx
cmp dword [ebp + 0x7c], 2
je 0x42ca26
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [ebp + 0x78]
cmp esi, 3
jb 0x42c523
cmp dword [edi + 0xc], 2
ja 0x42c4fa
lea eax, [edi + 0x18]
jmp 0x42c500
mov eax, dword [edi + 8]
mov eax, dword [eax + 8]
call fcn.00418733
cmp eax, 0xffffffff
je 0x42c523
cmp dword [edi + 0xc], 2
ja 0x42c515
lea eax, [edi + 0x18]
jmp 0x42c51b
mov eax, dword [edi + 8]
mov eax, dword [eax + 8]
call fcn.00418733
mov dword [ebp + 0x6c], eax
cmp esi, 4
jb 0x42c55c
cmp dword [edi + 0xc], 3
ja 0x42c533
lea eax, [edi + 0x18]
jmp 0x42c539
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
call fcn.00418733
cmp eax, 0xffffffff
je 0x42c55c
cmp dword [edi + 0xc], 3
ja 0x42c54e
lea eax, [edi + 0x18]
jmp 0x42c554
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
call fcn.00418733
mov dword [ebp + 0x68], eax
cmp esi, 5
jb 0x42c57a
cmp dword [edi + 0xc], 4
ja 0x42c56c
lea eax, [edi + 0x18]
jmp 0x42c572
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x10]
call fcn.00418733
mov dword [ebp + 0x64], eax
cmp esi, 6
jb 0x42c598
cmp dword [edi + 0xc], 5
ja 0x42c58a
lea eax, [edi + 0x18]
jmp 0x42c590
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x14]
call fcn.00418733
mov dword [ebp + 0x4c], eax
cmp esi, 7
jb 0x42c615
cmp dword [edi + 0xc], 6
ja 0x42c5a8
lea eax, [edi + 0x18]
jmp 0x42c5ae
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
call fcn.00418733
cmp eax, 0xffffffff
je 0x42c615
cmp dword [edi + 0xc], 6
ja 0x42c5c3
lea eax, [edi + 0x18]
jmp 0x42c5c9
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
call fcn.00418733
cmp dword [ebp + 0x7c], 1
mov dword [ebp + 0x5c], eax
jne 0x42c5f8
test al, 8
je 0x42c5e2
mov dword [ebp + 0x60], 0x50000002
test al, 4
je 0x42c5f8
movsx ecx, byte [ebp + 0x60]
and ecx, 2
or ecx, 0xa0000001
shr ecx, 1
mov dword [ebp + 0x60], ecx
test al, 2
je 0x42c5ff
mov dword [ebp + 0x58], ebx
test al, 1
je 0x42c60a
mov dword [ebp + 0x50], 0x88800000
test al, 0x10
je 0x42c615
xor dword [ebp + 0x50], 0x8000000
cmp dword [ebp + 0x64], 0xffffffff
jne 0x42c629
mov eax, dword [ebp + 0x44]
sub eax, dword [ebp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x4c], 0xffffffff
jne 0x42c63d
mov eax, dword [ebp + 0x48]
sub eax, dword [ebp + 0x68]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 0x4c], eax
push dword [ebp + 0x68]
lea eax, [ebp + 0x3c]
push dword [ebp + 0x6c]
push ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
push dword [ebp + 0x58]
lea eax, [ebp + 0x3c]
push ebx
push dword [ebp + 0x50]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
cmp dword [edi + 0xc], ebx
ja 0x42c66a
lea esi, [edi + 0x18]
jmp 0x42c66f
mov eax, dword [edi + 8]
mov esi, dword [eax]
mov eax, dword [ebp + 0x48]
sub eax, dword [ebp + 0x40]
push ebx
push ebx
push ebx
push dword [0x467a00]
push eax
mov eax, dword [ebp + 0x44]
sub eax, dword [ebp + 0x3c]
push eax
push dword [ebp + 0x4c]
push dword [ebp + 0x64]
push dword [ebp + 0x50]
call fcn.00418641
push eax
push str.AutoIt_v3
push dword [ebp + 0x58]
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [ebp + 0x3c]
push ecx
push eax
mov dword [0x4679e4], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 0x44]
sub eax, dword [ebp + 0x3c]
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x48]
sub eax, dword [ebp + 0x40]
cmp dword [ebp + 0x7c], ebx
mov dword [ebp + 0x68], eax
jne 0x42c801
push ebx
push ebx
push ebx
push dword [0x4679e4]
mov dword [ebp + 0x58], ebx
push eax
push dword [ebp + 0x6c]
push ebx
push ebx
push 0x5000000e
push ebx
push str.static
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp dword [edi + 0xc], 1
mov dword [ebp + 0x7c], eax
ja 0x42c700
lea esi, [edi + 0x18]
jmp 0x42c706
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
call fcn.00418641
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42ca26
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push eax
push 2
mov dword [ebp + 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
lea ecx, [ebp + 0x68]
push ecx
push dword [ebp + 0x5c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp + 0x6c]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp + 0x58]
push eax
push 0x45a7b0
push ebx
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp + 0x58]
cmp eax, ebx
je 0x42ca26
mov ecx, dword [eax]
lea edx, [ebp + 0x78]
push edx
push eax
call dword [ecx + 0xc]
push 0x2000
push ebx
push ebx
push ebx
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0x78], eax
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 0x78]
push ebx
push 0x172
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x78]
mov dword [0x4679e0], eax
mov eax, dword [ebp + 0x48]
sub eax, dword [ebp + 0x40]
push 0x20
push eax
mov eax, dword [ebp + 0x44]
sub eax, dword [ebp + 0x3c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x42ca18
cmp dword [edi + 0xc], 1
mov dword [ebp + 0x64], 0xc
mov dword [ebp + 0x58], 0x190
ja 0x42c81a
lea esi, [edi + 0x18]
jmp 0x42c820
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
push ebx
push ebx
push ebx
push dword [0x4679e4]
push dword [ebp + 0x68]
push dword [ebp + 0x6c]
push ebx
push ebx
push dword [ebp + 0x60]
call fcn.00418641
push eax
push str.static
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
push ebx
push ebx
push str.DISPLAY
mov dword [ebp + 0x7c], eax
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0x11
mov esi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x48]
push eax
push pe_nt_image_headers32
push esi
call dword [sym.imp.GDI32.dll_GetTextFaceW]
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov dword [ebp + 0x60], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 0x78], 8
jb 0x42c8d3
cmp dword [edi + 0xc], 7
ja 0x42c89a
lea esi, [edi + 0x18]
jmp 0x42c8a0
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x1c]
call fcn.00418641
push eax
call fcn.0044985c
cmp eax, 1
pop ecx
jb 0x42c8d3
cmp dword [edi + 0xc], 7
ja 0x42c8bc
lea esi, [edi + 0x18]
jmp 0x42c8c2
mov eax, dword [edi + 8]
mov esi, dword [eax + 0x1c]
call fcn.00418641
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004495f8
pop ecx
pop ecx
push 9
pop esi
cmp dword [ebp + 0x78], esi
jb 0x42c90f
cmp dword [edi + 0xc], 8
ja 0x42c8e6
lea eax, [edi + 0x18]
jmp 0x42c8ec
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x20]
call fcn.00418733
cmp eax, 6
jl 0x42c90f
cmp dword [edi + 0xc], 8
ja 0x42c901
lea eax, [edi + 0x18]
jmp 0x42c907
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x20]
call fcn.00418733
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x78], 0xa
jb 0x42c962
cmp dword [edi + 0xc], esi
ja 0x42c91f
lea eax, [edi + 0x18]
jmp 0x42c925
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x24]
call fcn.00418733
test eax, eax
jl 0x42c962
cmp dword [edi + 0xc], esi
ja 0x42c938
lea eax, [edi + 0x18]
jmp 0x42c93e
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x24]
call fcn.00418733
cmp eax, 0x3e8
jg 0x42c962
cmp dword [edi + 0xc], esi
ja 0x42c954
lea eax, [edi + 0x18]
jmp 0x42c95a
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x24]
call fcn.00418733
mov dword [ebp + 0x58], eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 0x60]
imul eax, dword [ebp + 0x64]
push ebx
push 2
push ebx
push 4
push 1
push ebx
push ebx
push ebx
push dword [ebp + 0x58]
cdq
push ebx
push ebx
push ebx
push 0xffffffffffffffb8
pop ecx
idiv ecx
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
push 1
push eax
push 0x30
push dword [ebp + 0x7c]
mov dword [0x4679e8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test byte [ebp + 0x5c], 0x20
je 0x42ca18
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_GetDC]
push dword [0x4679e8]
mov dword [ebp + 0x78], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0xc], 1
mov dword [ebp + 0x5c], eax
ja 0x42c9cb
lea esi, [edi + 0x18]
jmp 0x42c9d1
mov eax, dword [edi + 8]
mov esi, dword [eax + 4]
call fcn.00418641
push dword [ebp + 0x78]
lea esi, [ebp + 0x54]
call fcn.0041633d
pop ecx
push dword [ebp + 0x5c]
push dword [ebp + 0x78]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x78]
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0x68]
sub eax, dword [ebp + 0x58]
push 1
push dword [ebp + 0x58]
cdq
push dword [ebp + 0x6c]
sub eax, edx
sar eax, 1
push eax
push ebx
push dword [ebp + 0x7c]
call dword [sym.imp.USER32.dll_MoveWindow]
push 4
push dword [0x4679e4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
add ebp, 0x70
leave
ret 8