Function at 0x48f9f0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5512f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x574
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xa8]
test eax, eax
mov dword [esp + 8], ebp
je 0x48fa36
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x574]
mov dword fs:[0], ecx
add esp, 0x580
ret 4
push esi
push edi
lea edi, [ebp + 0x14]
push edi
call fcn.00529a26
mov esi, dword [esp + 0x590]
push esi
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
mov dword [esp + 0x588], 0
jl 0x48fa89
push 0x55f368
push ecx
call fcn.004662d5
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x48fa89
sub eax, ecx
cmp eax, 0xffffffff
jne 0x48fb66
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x48fad7
push 0x573244
push ecx
call fcn.004662d5
mov ecx, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x48fab1
sub eax, ecx
cmp eax, 0xffffffff
jne 0x48fb66
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x48fad7
push 0x573240
push ecx
call fcn.004662d5
add esp, 8
test eax, eax
je 0x48fad7
sub eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x48fb66
push 0x104
lea eax, [esp + 0x27c]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x48fb66
push 0
push 0
lea ecx, [esp + 0x180]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x288]
push eax
call fcn.00469119
lea ecx, [esp + 0x390]
push ecx
lea edx, [esp + 0x90]
push edx
push 0
push 0
push esi
call fcn.00469119
lea eax, [esp + 0x3a4]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x1a8]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x4b4]
push ecx
call fcn.0051bf18
add esp, 0x3c
lea edx, [esp + 0x47c]
push edx
lea ecx, [esp + 0x10]
call fcn.00401b80
call fcn.0053abfb
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 8]
push 0x3010
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.user32.dll_LoadImageA]
test eax, eax
mov dword [edi], eax
jne 0x48fbac
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x588], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x48fbee
mov esi, dword [sym.imp.gdi32.dll_GetObjectA]
lea ecx, [esp + 0x60]
push ecx
push 0x18
push eax
call esi
test eax, eax
jne 0x48fbff
mov edx, dword [edi]
push edx
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [edi], 0
mov dword [esp + 0x588], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48fbf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x48fe81
push ebx
lea eax, [esp + 0x10]
mov ebx, 1
lea ecx, [ebp + 0x20]
push eax
mov dword [ebp + 0x1c], ebx
call fcn.00401a70
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
test bl, al
je 0x48fc2a
mov dword [ebp + 0xa4], ebx
movzx eax, word [esp + 0x76]
cmp eax, 8
mov dword [ebp + 0xb4], eax
jle 0x48fe44
cmp eax, 0x20
jge 0x48fe44
cmp dword [edi], 0
je 0x48fe44
lea ecx, [esp + 0x1c]
call fcn.005280aa
push 0
mov byte [esp + 0x590], 1
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x20]
call fcn.00528623
mov eax, dword [edi]
lea edx, [esp + 0x4c]
push edx
push 0x18
push eax
call esi
test eax, eax
jne 0x48fc98
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58c], al
call fcn.005286a1
jmp 0x48fe44
mov eax, dword [edi]
test eax, eax
je 0x48fcb4
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SelectObject]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x48], ebx
jne 0x48fcca
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58c], 0
call fcn.005286a1
jmp 0x48fe44
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
push ecx
push eax
mov edi, eax
mov ebp, ecx
push edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x24], ebp
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
mov esi, eax
test esi, esi
mov dword [esp + 0x40], esi
jne 0x48fd04
push ebx
lea ecx, [esp + 0x20]
call fcn.0040a400
jmp 0x48fe2f
lea ecx, [esp + 0x2c]
call fcn.005280aa
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x590], 2
call fcn.004043a0
push esi
lea ecx, [esp + 0x30]
call fcn.0040a400
test eax, eax
mov dword [esp + 0x3c], eax
jne 0x48fd4b
push ebx
lea ecx, [esp + 0x20]
call fcn.0040a400
push esi
call dword [sym.imp.gdi32.dll_DeleteObject]
jmp 0x48fe1e
push 0xcc0020
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x4c]
call fcn.00404430
xor ebp, ebp
test edi, edi
jle 0x48fdf1
mov ebx, dword [sym.imp.gdi32.dll_GetPixel]
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x48fde4
mov edx, dword [esp + 0x30]
push edi
push ebp
push edx
call ebx
mov esi, eax
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xb4], 0x18
jne 0x48fdae
mov eax, dword [0x5a4340]
test eax, eax
jne 0x48fdae
push esi
call fcn.0048d140
add esp, 4
jmp 0x48fdc5
xor eax, eax
cmp esi, dword [eax*8 + 0x5731e4]
je 0x48fe9b
inc eax
cmp eax, 4
jl 0x48fdb0
mov eax, esi
cmp esi, eax
je 0x48fdd7
mov edx, dword [esp + 0x30]
push eax
push edi
push ebp
push edx
call dword [sym.imp.gdi32.dll_SetPixel]
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x48fd82
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
inc ebp
cmp ebp, eax
jl 0x48fd78
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.gdi32.dll_SelectObject]
push eax
push ecx
call edi
mov edx, dword [esp + 0x20]
push ebx
push edx
call edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x14]
add edi, 0x14
push eax
call dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [edi], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58c], 1
call fcn.005286a1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58c], 0
call fcn.005286a1
mov ebp, dword [esp + 0x14]
mov ecx, ebp
call fcn.0048d080
mov ecx, ebp
call fcn.0048dfd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x58c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebx
jg 0x48fe7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x580]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x580
ret 4
mov ecx, dword [eax*8 + 0x5731e8]
push ecx
mov ecx, 0x5a7940
call fcn.00480330
jmp 0x48fdc5