Function at 0x423250
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c79b0
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x824], ecx
push 0x200
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.0047ebc0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
add esp, 0xc
xor esi, esi
push esi
lea eax, [ebp - 0x620]
push str.screenshot_abss_06d.png
push eax
call fcn.0044d1b0
add esp, 0xc
lea eax, [ebp - 0x620]
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
cmp edi, 0xffffffff
je 0x4232f7
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0xf4240
jl 0x4232a2
jmp 0x4234c3
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea eax, [ebp - 0x620]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4233bb
mov ecx, 0x80
lea esi, [ebp - 0x620]
lea edi, [ebp - 0x820]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x820]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423340
sub ecx, edx
mov eax, ecx
test ecx, ecx
jle 0x42336e
nop
mov dl, byte [ebp + eax - 0x820]
cmp dl, 0x5c
je 0x4234df
cmp dl, 0x2f
je 0x4234df
dec eax
test eax, eax
jg 0x423350
push 0x200
lea eax, [ebp - 0x820]
push 0
push eax
call fcn.0047ebc0
add esp, 0xc
lea ecx, [ebp - 0x820]
call fcn.0044ee60
test al, al
je 0x4234c3
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x620]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4234c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov byte [ebp - 0x420], 0
push 0x400
push eax
mov dword [ebp - 0x41e], eax
lea eax, [ebp - 0x41a]
push eax
mov dword [ebp - 0x18], 0
call fcn.0047ebc0
add esp, 0xc
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
call fcn.00440dd0
test al, al
je 0x423470
mov ebx, dword [ebp - 0x824]
sub esp, 8
movzx ecx, word [ebp - 0x41c]
movzx eax, word [ebx + 0x10]
movzx edx, word [ebx + 0xe]
sub ecx, eax
push eax
push edx
push ecx
movzx ecx, word [ebp - 0x41e]
mov eax, edx
sub ecx, eax
lea eax, [ebx + 0xc]
push ecx
push eax
lea ecx, [ebp - 0x420]
call fcn.00451350
lea eax, [ebp - 0x620]
push 0x4f1d40
push eax
call fcn.0048a151
mov esi, eax
add esp, 8
test esi, esi
je 0x423470
push ecx
lea edx, [ebp - 0x420]
mov ecx, esi
call fcn.00450860
add esp, 4
push esi
call fcn.00480b3a
add esp, 4
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x42348e
push 0x8000
push 0
push eax
call esi
mov dword [ebp - 0x18], 0
xor eax, eax
mov byte [ebp - 0x420], 0
push 0x400
push eax
mov dword [ebp - 0x41e], eax
lea eax, [ebp - 0x41a]
push eax
call fcn.0047ebc0
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x4234c3
push 0x8000
push 0
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d312
mov esp, ebp
pop ebp
ret
cmp eax, ecx
jg 0x423384
sub ecx, eax
inc ecx
push ecx
lea ecx, [ebp - 0x820]
add eax, ecx
jmp 0x423379