Function at 0x489a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4415
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x639354]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push str.kaccountsdk
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], 0
call fcn.00523040
push 0x5ba110
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00523040
push 1
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00535dc0
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.005273c0
mov esi, eax
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x489d9c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 3
test esi, esi
je 0x489b51
test esi, 0xffff0000
jne 0x489b38
movzx eax, si
lea ecx, [ebp - 0x5c]
push eax
call fcn.00429d90
jmp 0x489b5d
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489b40
sub ecx, edx
sar ecx, 1
jmp 0x489b53
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x5c]
call fcn.0042a060
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x489b9b
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489b91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489da6
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x489bed
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489be3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489da6
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x489c3f
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x489c35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x489da6
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
push str.kaccountsdk.dll
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.004444c0
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0042afa0
add esp, 0xc
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.004297a0
mov edx, dword [ebp - 0x64]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489ca2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, edi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489cc0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x5c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x489cfa
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x489cf4
push str.GetStdAccountSdk
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x489d5e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push str.office6kaccountsdk.dll
push dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
push eax
call fcn.00429810
add esp, 0xc
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
call fcn.004297a0
mov edx, dword [ebp - 0x64]
mov eax, edi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489d39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x5c]
push esi
call ebx
test eax, eax
je 0x489d64
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x489d64
push str.GetStdAccountSdk
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x489d64
lea ecx, [ebp - 0x60]
push ecx
call eax
mov ebx, dword [ebp - 0x60]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x489d7c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c3a9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00429b60
call fcn.0056af64
int3