Function at 0x456d00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d39b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push esi
push edi
mov eax, dword [0x492110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x456d49
xor ecx, ecx
cmp cx, word [eax]
je 0x456d49
push eax
call edi
cmp eax, 0xffffffff
jne 0x456d6b
mov eax, dword [esi + 0x48]
test eax, eax
je 0x456fbe
xor ecx, ecx
cmp cx, word [eax]
je 0x456fbe
push eax
call edi
cmp eax, 0xffffffff
je 0x456fbe
cmp dword [esi + 0x48], 0
je 0x456fd2
cmp dword [esi + 0x4c], 0
je 0x456fd2
push 1
lea ecx, [ebp - 0x104]
call fcn.00454520
mov edi, dword [esi + 0x4c]
mov dword [ebp - 4], 0
call fcn.00455dd0
mov ecx, eax
test ecx, ecx
je 0x456fe9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x456de4
test edi, 0xffff0000
jne 0x456dce
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.004565c0
jmp 0x456df0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456dd3
sub ecx, edx
sar ecx, 1
jmp 0x456de6
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00457d10
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x104]
call fcn.0045fb10
mov edx, dword [ebp - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x456e24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea ecx, [ebp - 0x8c]
call fcn.00454520
mov edi, dword [esi + 0x48]
mov byte [ebp - 4], 3
call fcn.00455dd0
mov ecx, eax
test ecx, ecx
je 0x456ff3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
test edi, edi
je 0x456e86
test edi, 0xffff0000
jne 0x456e70
movzx eax, di
lea ecx, [ebp - 0x10]
push eax
call fcn.004565c0
jmp 0x456e92
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456e75
sub ecx, edx
sar ecx, 1
jmp 0x456e88
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00457d10
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x8c]
call fcn.0045fb10
mov edx, dword [ebp - 0x10]
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x456ec1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
push dword [0x492ae0]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00455910
test al, al
je 0x456ef1
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
mov dword [esi + 0x50], eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 0x40000
push dword [0x492ad4]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00455910
test al, al
je 0x456f23
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x14]
call dword [eax + 0x34]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 3
push dword [0x492acc]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00455910
test al, al
je 0x456f52
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x14]
call dword [eax + 0x2c]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 3
push dword [0x492ad8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00455910
test al, al
je 0x456f7d
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 0x10
push dword [0x492adc]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00455910
test al, al
je 0x456fa8
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x44], eax
lea ecx, [ebp - 0x8c]
call fcn.00454910
lea ecx, [ebp - 0x104]
call fcn.00454910
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406a91
push 0x80004005
call fcn.00406a91
int3