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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
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]
test eax, eax
je 0x45613a
xor ecx, ecx
cmp cx, word [eax]
je 0x45613a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45613a
push 1
lea ecx, [ebp - 0x94]
call fcn.00454520
mov esi, dword [esi + 0x4c]
mov dword [ebp - 4], 0
call fcn.00455dd0
mov ecx, eax
test ecx, ecx
je 0x45614e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
test esi, esi
je 0x455f88
test esi, 0xffff0000
jne 0x455f72
movzx eax, si
lea ecx, [ebp - 0x10]
push eax
call fcn.004565c0
jmp 0x455f94
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x455f77
sub ecx, edx
sar ecx, 1
jmp 0x455f8a
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00457d10
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x94]
call fcn.0045fb10
mov edx, dword [ebp - 0x10]
test al, al
mov byte [ebp - 4], 0
sete bl
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x455fcd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x456119
mov esi, dword [str.LastLogIdx]
mov dword [ebp - 0x1c], 0
call fcn.00455dd0
mov ecx, eax
test ecx, ecx
je 0x45614e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x456031
test esi, 0xffff0000
jne 0x45601a
movzx eax, si
lea ecx, [ebp - 0x18]
push eax
call fcn.004565c0
jmp 0x45603d
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456020
sub ecx, edx
sar ecx, 1
jmp 0x456033
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x18]
call fcn.00457d10
mov esi, dword [str.Config]
mov byte [ebp - 4], 4
call fcn.00455dd0
mov ecx, eax
test ecx, ecx
je 0x45614e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
test esi, esi
je 0x456095
test esi, 0xffff0000
jne 0x45607f
movzx eax, si
lea ecx, [ebp - 0x14]
push eax
call fcn.004565c0
jmp 0x4560a1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456084
sub ecx, edx
sar ecx, 1
jmp 0x456097
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00457d10
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x94]
call fcn.0045e3a0
mov edx, dword [ebp - 0x14]
test al, al
mov eax, edi
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4560db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4560f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x456119
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x94]
call fcn.00454910
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x94]
xor esi, esi
call fcn.00454910
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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
push 0x80004005
call fcn.00406a91
int3