Function at 0x4088c0
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46aad8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x486668]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0045a510
add esp, 8
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x84], 0
call fcn.0040ddd0
mov byte [esp + 0x80], 1
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x58]
push eax
lea ebx, [esp + 0x44]
call fcn.0040e010
mov eax, dword [esp + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x408995
mov ecx, dword [esp + 0x40]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040ae50
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x54]
mov dword [edx + 0x120], 0x20001003
mov byte [esp + 0x80], bl
call fcn.0040df10
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fe9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408fe9
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push edx
lea ebx, [esp + 0x5c]
call fcn.0040ec20
lea edi, [esp + 0x34]
mov esi, ebx
call fcn.0040dfa0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x408a36
test al, 0x10
je 0x408a36
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push esi
call fcn.004092a0
test al, al
je 0x408a36
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 0
call fcn.0040df10
mov dword [esp + 0x80], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x408a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [0x48b318], 0
je 0x408a77
lea ecx, [esp + 0x54]
mov dword [esi + 0x120], 0x70
mov byte [esp + 0x80], 0
call fcn.0040df10
mov dword [esp + 0x80], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x408980
lea ecx, [esp + 0x1c]
push ecx
call fcn.00409000
mov byte [esp + 0x80], 2
mov edi, dword [esp + 0x1c]
mov ecx, 0x477ce4
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408aba
test dx, dx
je 0x408ab6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408aba
add eax, 4
add ecx, 4
test dx, dx
jne 0x408a94
xor eax, eax
jmp 0x408abe
sbb eax, eax
sbb eax, ebx
test eax, eax
jne 0x408b1d
lea eax, [edi - 0x10]
mov dword [esi + 0x120], 0x70
mov byte [esp + 0x80], 1
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408aef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 0
call fcn.0040df10
mov dword [esp + 0x80], ebx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x408980
lea edi, [esp + 0x44]
call fcn.0040ba60
lea ecx, [esp + 0x20]
push 0x85
push ecx
mov byte [esp + 0x88], 3
call fcn.004066e0
add esp, 8
mov edi, eax
mov byte [esp + 0x80], 4
mov esi, dword [esp + 0x48]
test esi, esi
mov ebx, dword [esp + 0x4c]
je 0x408b5f
mov edx, ebx
sub edx, esi
sar edx, 2
jne 0x408b64
call fcn.0042f182
push edi
mov ecx, esi
call fcn.00405a10
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push 0x88
push ecx
call fcn.004066e0
add esp, 8
mov edi, eax
test esi, esi
mov byte [esp + 0x80], 5
je 0x408bc0
mov eax, ebx
sub eax, esi
sar eax, 2
cmp eax, 1
ja 0x408bc5
call fcn.0042f182
lea ecx, [esi + 4]
push edi
call fcn.00405a10
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408bf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push 0x8a
push ecx
call fcn.004066e0
add esp, 8
mov edi, eax
test esi, esi
mov byte [esp + 0x80], 6
je 0x408c22
mov eax, ebx
sub eax, esi
sar eax, 2
cmp eax, 2
ja 0x408c27
call fcn.0042f182
lea ecx, [esi + 8]
push edi
call fcn.00405a10
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408c58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push 0x8b
push ecx
call fcn.004066e0
add esp, 8
mov edi, eax
test esi, esi
mov byte [esp + 0x80], 7
je 0x408c82
sub ebx, esi
sar ebx, 2
cmp ebx, 3
ja 0x408c87
call fcn.0042f182
lea ecx, [esi + 0xc]
push edi
call fcn.00405a10
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408cb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push 0x86
push ecx
call fcn.004066e0
sub esp, 8
mov byte [esp + 0x90], 8
mov edx, esp
mov dword [esp + 0x44], esp
push edx
lea ecx, [esp + 0x58]
call fcn.0040bb00
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0045ac70
add esp, 0x1c
mov byte [esp + 0x80], 9
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004073f0
add esp, 0xc
mov byte [esp + 0x80], 0xb
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 1
push 0
push ecx
call fcn.0041cadf
cmp eax, 1
jne 0x408f2b
lea edx, [esp + 0x2c]
push 0x84
push edx
call fcn.004066e0
mov esi, eax
lea eax, [esp + 0x30]
push 0x84
push eax
mov byte [esp + 0x90], 0xc
call fcn.004066e0
add esp, 0x10
mov edi, dword [ebp + 8]
push esi
push eax
lea ecx, [esp + 0x24]
push ecx
mov eax, edi
mov byte [esp + 0x8c], 0xd
call fcn.0040d970
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0045f940
add esp, 0x14
mov byte [esp + 0x80], 0xf
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 0x10
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408df7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x20]
mov ecx, 0x477ce4
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408e28
test dx, dx
je 0x408e24
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408e28
add eax, 4
add ecx, 4
test dx, dx
jne 0x408e02
xor eax, eax
jmp 0x408e2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x408f98
mov eax, dword [edi + 0xcc]
push eax
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
call fcn.00402cb0
lea ecx, [esp + 0x3c]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00407cc0
add esp, 0xc
push eax
lea ecx, [edi + 0xc8]
mov byte [esp + 0x84], 0x11
call fcn.00405a10
mov byte [esp + 0x80], 0x10
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408ea2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push edi
call fcn.004092a0
test al, al
jne 0x408f3a
mov byte [esp + 0x80], 0xb
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408ee2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x408cac
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x120], 0x642
jmp 0x408fab
lea ecx, [esp + 0x20]
call fcn.00407c70
lea ecx, [esp + 0x14]
call fcn.00407c70
lea ecx, [esp + 0x18]
call fcn.00407c70
lea ecx, [esp + 0x44]
call fcn.0040d6e0
lea ecx, [esp + 0x1c]
call fcn.00407c70
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 0
call fcn.0040df10
lea ecx, [esp + 0x10]
call fcn.00407c70
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x20]
mov dword [edi + 0x120], 0x642
call fcn.00407c70
lea ecx, [esp + 0x14]
call fcn.00407c70
lea ecx, [esp + 0x18]
call fcn.00407c70
lea ecx, [esp + 0x44]
call fcn.0040d6e0
lea ecx, [esp + 0x1c]
call fcn.00407c70
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 0
call fcn.0040df10
lea ecx, [esp + 0x10]
call fcn.00407c70
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4