Function at 0x48d160
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x61addb
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x69e3d4]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x548]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x90], 0
mov ebx, edx
jne 0x48d33f
lea edi, [esi + 0x14]
push edi
call fcn.005918e8
push ebx
lea ecx, [esp + 0x18]
call fcn.00404eb0
mov dword [esp + 0x550], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
or ebp, 0xffffffff
test eax, eax
jl 0x48d1f8
push 0x645b40
push ecx
call fcn.005a75c4
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x48d1f8
sub eax, ecx
cmp eax, ebp
jne 0x48d2d7
cmp dword [ecx - 0xc], 0
jl 0x48d244
push 0x64fdf8
push ecx
call fcn.005a75c4
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x48d21e
sub eax, ecx
cmp eax, ebp
jne 0x48d2d7
cmp dword [ecx - 0xc], 0
jl 0x48d244
push 0x646df4
push ecx
call fcn.005a75c4
add esp, 8
test eax, eax
je 0x48d244
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp eax, ebp
jne 0x48d2d7
push 0x104
lea eax, [esp + 0x238]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x48d2d3
push 0
push 0
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x244]
push eax
call fcn.005a5f5d
add esp, 0x14
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x340]
push edx
push 0
push 0
push ebx
call fcn.005a5f5d
add esp, 0x14
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x340]
push ecx
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44c]
push ecx
call fcn.005a6446
add esp, 0x14
lea edx, [esp + 0x43c]
push edx
lea ecx, [esp + 0x18]
call fcn.004015c0
mov ecx, dword [esp + 0x14]
mov ebx, ecx
call fcn.005702dd
mov eax, dword [eax + 8]
push 0x3010
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.user32.dll_LoadImageA]
test eax, eax
mov dword [edi], eax
je 0x48d31b
lea ecx, [esp + 0x1c]
push ecx
push 0x18
push eax
call dword [sym.imp.gdi32.dll_GetObjectA]
test eax, eax
jne 0x48d343
mov edx, dword [edi]
push edx
call dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [edi], 0
mov dword [esp + 0x550], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x48d33f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x48d3ae
lea edx, [esp + 0x14]
mov ebx, 1
lea ecx, [esi + 0x24]
push edx
mov dword [esi + 0x20], ebx
call fcn.004074e0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
test bl, al
je 0x48d36d
mov dword [esi + 0x8c], ebx
cmp word [esp + 0x2e], 8
jbe 0x48d37d
push 0
push esi
call fcn.0048eaa0
call fcn.0048daf0
push esi
call fcn.0048ed00
mov dword [esp + 0x550], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x48d3ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x548]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x530]
xor ecx, esp
call fcn.005a58d9
add esp, 0x540
ret