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

Disassembly:
push 0xffffffffffffffff
push 0x54984b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x174]
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov ebp, dword [esi + 4]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x170], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
mov byte [esp + 0x170], 3
mov eax, ecx
mov dword [esi + 0xb8], ebx
shl eax, 0x1c
sar eax, 0x1c
dec eax
mov dword [esi + 0xb4], ebx
je 0x49cde2
dec eax
jne 0x49d007
mov eax, dword [0x5ab980]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
xor ebp, ebp
lea eax, [esp + 0x3c]
mov bl, 9
mov dword [esi + 0x78], ebp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x70], ebp
push eax
mov ecx, esi
mov byte [esp + 0x174], bl
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x84], ebp
mov dword [esi + 0x8c], ebp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x94], ebp
mov dword [esi + 0x90], ebp
mov dword [esi + 0x74], ebp
mov dword [esi + 0xb8], ebp
call fcn.00441ca0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x174], 0xa
call fcn.00512a1d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x170], bl
call fcn.005128e4
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00441e60
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 0xb
call fcn.00512a1d
lea ecx, [esp + 0x34]
mov byte [esp + 0x170], bl
call fcn.005128e4
lea edx, [esp + 0x20]
push 1
push edx
mov ecx, edi
call fcn.0049c5e0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004222e0
add esp, 0xc
test eax, eax
jne 0x49ca4b
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
call fcn.00512a1d
test dword [edi + 0x3944], 0x1000000
jne 0x49caab
test byte [edi + 0x3948], 0x80
jne 0x49caab
mov ecx, dword [edi + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0xec]
push eax
push edx
call fcn.00422ad0
add esp, 8
test eax, eax
je 0x49caab
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [edi + 0x3a48]
call fcn.00496940
cmp eax, ebp
je 0x49caec
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [edi + 0x3a64]
call fcn.00496940
jmp 0x49cae6
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [edi + 0x3a64]
call fcn.00496940
cmp eax, ebp
mov dword [esi + 0xb4], eax
jne 0x49caec
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.00512659
lea ecx, [edi + 0x3a80]
call fcn.00496cc0
mov dword [esi + 0xb4], eax
cmp dword [esp + 0x17c], ebp
je 0x49cd97
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 0xc
call fcn.00512a1d
lea ecx, [esp + 0x58]
mov byte [esp + 0x170], bl
call fcn.005128e4
mov ecx, dword [edi + 0x3c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
test eax, eax
jne 0x49ccdf
mov eax, dword [esp + 0x28]
cmp eax, 2
jl 0x49cdcf
cmp eax, 3
jg 0x49cdcf
test ebp, ebp
jne 0x49cd1e
mov ecx, dword [edi + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 0xec]
push eax
push edx
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x49cc16
mov ecx, dword [edi + 0x3c]
lea eax, [esp + 0x18]
add ecx, 0xf4
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov ebp, 1
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 0xd
call fcn.00512a1d
lea ecx, [esp + 0x44]
mov byte [esp + 0x170], bl
call fcn.005128e4
mov ecx, dword [edi + 0x3c]
mov edx, dword [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax]
cmp eax, 0xffffffff
je 0x49cd1e
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.00512b13
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov ecx, edi
mov byte [esp + 0x17c], 0xe
call fcn.0049c310
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x54]
jmp 0x49ccc0
mov edx, dword [edi + 0x3c]
mov eax, dword [edx + 0xf4]
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.004f9670
add esp, 8
test eax, eax
jne 0x49cd1e
mov edx, dword [edi + 0x3c]
lea ecx, [esp + 0x18]
add edx, 0xec
push ecx
lea eax, [esp + 0x50]
push edx
push eax
mov ebp, 1
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x174], 0xf
call fcn.00512a1d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x170], bl
call fcn.005128e4
mov ecx, dword [edi + 0x3c]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [ecx]
call dword [edx]
cmp eax, 0xffffffff
je 0x49cd1e
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00512b13
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov ecx, edi
mov byte [esp + 0x17c], 0x10
call fcn.0049c310
mov byte [esp + 0x170], bl
lea ecx, [esp + 0x38]
call fcn.005128e4
mov ecx, dword [edi + 0x3c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
test eax, eax
je 0x49cb49
mov ecx, dword [esi + 0xb8]
or ecx, 1
mov dword [esi + 0xb8], ecx
mov ecx, dword [eax + 0x40]
mov dword [esi + 0x88], ecx
mov edx, dword [eax + 0x44]
mov dword [esi + 0x8c], edx
mov ecx, dword [eax + 0x48]
mov dword [esi + 0x90], ecx
mov edx, dword [eax + 0x4c]
mov dword [esi + 0x94], edx
mov ecx, dword [eax + 0x58]
mov dword [esi + 0x70], ecx
mov edx, dword [eax + 0x5c]
mov dword [esi + 0x74], edx
test byte [esi + 0xb8], 1
je 0x49cd97
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x49cd44
mov eax, dword [esi + 0xb8]
or al, 4
mov dword [esi + 0xb8], eax
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00421ec0
add esp, 4
test eax, eax
je 0x49cd63
mov eax, dword [esi + 0xb8]
or al, 8
mov dword [esi + 0xb8], eax
mov ecx, dword [edi + 0x3c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
test eax, eax
je 0x49cd97
mov ecx, dword [eax + 0x60]
mov dword [esi + 0x78], ecx
mov edx, dword [eax + 0x64]
mov dword [esi + 0x7c], edx
mov ecx, dword [eax + 0x68]
mov dword [esi + 0x80], ecx
mov edx, dword [eax + 0x6c]
mov dword [esi + 0x84], edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x170], 8
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x170], 7
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x170], 3
call fcn.005128e4
jmp 0x49d007
mov eax, dword [esi + 0xb8]
or al, 1
mov dword [esi + 0xb8], eax
jmp 0x49cd1e
test ecx, 0x40000
je 0x49cdfb
add edi, 0x3ae4
mov dword [esi + 0xb4], edi
jmp 0x49d007
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.00441e60
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x174], 4
call fcn.00512a1d
lea ecx, [esp + 0x40]
mov byte [esp + 0x170], 3
call fcn.005128e4
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, edi
call fcn.0049c5e0
cmp ebp, ebx
je 0x49ce5b
mov edx, dword [ebp + 0xb8]
mov eax, dword [esi + 0xb8]
shl edx, 0x1e
sar edx, 0x1e
xor edx, eax
and edx, 2
xor edx, eax
mov dword [esi + 0xb8], edx
cmp dword [esp + 0x17c], ebx
je 0x49cf8f
mov ecx, dword [edi + 0x3c]
mov edx, dword [esp + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [esi + 0xb8]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
xor ecx, edx
and ecx, 1
xor ecx, edx
test cl, 1
mov dword [esi + 0xb8], ecx
je 0x49cf9d
test al, 0x10
jne 0x49cea5
or ecx, 2
mov dword [esi + 0xb8], ecx
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x49cf9d
lea ecx, [esp + 0x60]
push 0x104
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00421160
add esp, 0xc
test eax, eax
jl 0x49cf9d
lea eax, [esp + 0x48]
mov ecx, esi
push eax
call fcn.00441ae0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 5
call fcn.00512a1d
lea ecx, [esp + 0x48]
mov byte [esp + 0x170], 3
call fcn.005128e4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x60]
push ecx
push edx
call fcn.004f9670
add esp, 8
cmp eax, ebx
je 0x49cf9d
mov al, byte [esp + 0x60]
test al, al
je 0x49cf9d
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call fcn.00441e60
mov ecx, dword [eax]
push ebp
push ecx
call fcn.004f9670
add esp, 8
cmp eax, ebx
lea ecx, [esp + 0x50]
setne bl
call fcn.005128e4
test bl, bl
je 0x49cf9d
lea edx, [esp + 0x60]
lea ecx, [esp + 0x30]
push edx
call fcn.00512952
lea eax, [esp + 0x30]
push 0
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x17c], 6
call fcn.0049c310
lea ecx, [esp + 0x30]
mov byte [esp + 0x170], 3
call fcn.005128e4
jmp 0x49cf9d
mov eax, dword [esi + 0xb8]
and al, 0xfe
mov dword [esi + 0xb8], eax
test byte [esi + 0xb8], 2
jne 0x49d007
test dword [edi + 0x3944], 0x1000000
jne 0x49cff1
test byte [edi + 0x3948], 0x80
jne 0x49cff1
mov edx, dword [edi + 0x3c]
mov eax, dword [edx + 0xec]
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00422ad0
add esp, 8
test eax, eax
je 0x49cff1
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [edi + 0x3a48]
call fcn.004968f0
test eax, eax
je 0x49d007
mov edx, dword [esp + 0x1c]
push edx
jmp 0x49cff6
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [edi + 0x3a64]
call fcn.004968f0
mov dword [esi + 0xb4], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 2
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x170], 1
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x170], 0
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x170], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x164
ret 8