Function at 0x1001ad00
Capabilities:
Check if file exists
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10132d54
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x610
mov eax, dword [0x10167b84]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3e8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3e8]
add ecx, 4
call fcn.10012a00
movzx eax, al
test eax, eax
je 0x1001ad67
mov ecx, dword [ebp - 0x3e8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x3e8]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x3ec]
push ecx
mov ecx, dword [ebp - 0x3e8]
add ecx, 4
call fcn.100117c0
lea ecx, [ebp - 0x3dc]
call fcn.100157e0
mov byte [ebp - 4], 1
mov dword [ebp - 0x3e4], 0
jmp 0x1001ada2
lea ecx, [ebp - 0x3ec]
call fcn.1001a950
cmp dword [ebp - 0x3e4], 0
jne 0x1001b6a3
lea edx, [ebp - 0x498]
push edx
mov ecx, dword [ebp - 0x3e8]
add ecx, 4
call fcn.10012a40
push eax
lea ecx, [ebp - 0x3ec]
call fcn.1000c8e0
movzx eax, al
test eax, eax
je 0x1001b6a3
lea ecx, [ebp - 0x3ec]
call fcn.10007810
push eax
lea ecx, [ebp - 0x3dc]
call fcn.10018670
lea ecx, [ebp - 0x3dc]
call fcn.10010af0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001ae3b
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3dc]
call fcn.100159b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100159b0
mov eax, dword [ebp - 0x418]
jmp 0x1001b6d3
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea edx, [ebp - 0x4bc]
push edx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x494]
call fcn.100371f0
mov dword [ebp - 0x49c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3dc]
call fcn.10010af0
push eax
lea ecx, [ebp - 0x494]
call fcn.10037d90
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x3f4]
call fcn.10015710
mov dword [ebp - 0x4c0], eax
mov byte [ebp - 4], 4
push 0x10139140
push 0x10139148
lea ecx, [ebp - 0x3f4]
call fcn.1001b9a0
lea ecx, [ebp - 0x3f0]
call fcn.100157e0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x3f4]
push edx
push 0x10139150
lea eax, [ebp - 0x3f0]
push eax
call fcn.1001a9f0
add esp, 0xc
lea ecx, [ebp - 0x3f0]
call fcn.10010af0
push eax
lea ecx, [ebp - 0x4d8]
push ecx
lea ecx, [ebp - 0x494]
call fcn.10037a10
mov dword [ebp - 0x4a0], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4d8]
call fcn.100376e0
mov byte [ebp - 0x3dd], al
movzx edx, byte [ebp - 0x3dd]
test edx, edx
jne 0x1001af92
push 0x1013914c
lea ecx, [ebp - 0x4d8]
call fcn.10037bf0
mov dword [ebp - 0x41c], eax
push 0xfde9
mov eax, dword [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x3d8]
call fcn.1001a900
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0x420]
mov dword [ebp - 0x424], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x424]
call fcn.10010af0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10015ac0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3d8]
call fcn.100159d0
mov dword [ebp - 0x3e4], 1
lea ecx, [ebp - 0x4d8]
call fcn.10037c30
lea ecx, [ebp - 0x494]
call fcn.10037600
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4d8]
call fcn.10037420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3f0]
call fcn.100159b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3f4]
call fcn.100159b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x494]
call fcn.10037370
jmp 0x1001b149
mov dword [ebp - 4], 1
jmp 0x1001b159
mov ecx, dword [0x1016af7c]
and ecx, 1
jne 0x1001b185
mov edx, dword [0x1016af7c]
or edx, 1
mov dword [0x1016af7c], edx
mov byte [ebp - 4], 0xd
call fcn.1001b8e0
mov dword [0x1016af78], eax
mov byte [ebp - 4], 1
mov eax, 0x33
mov word [ebp - 0x20], ax
mov ecx, 0x36
mov word [ebp - 0x1e], cx
mov edx, 0x30
mov word [ebp - 0x1c], dx
mov eax, 0x73
mov word [ebp - 0x1a], ax
mov ecx, 0x65
mov word [ebp - 0x18], cx
xor edx, edx
mov word [ebp - 0x16], dx
mov eax, 0x33
mov word [ebp - 0x34], ax
mov ecx, 0x36
mov word [ebp - 0x32], cx
mov edx, 0x30
mov word [ebp - 0x30], dx
mov eax, 0x63
mov word [ebp - 0x2e], ax
mov ecx, 0x68
mov word [ebp - 0x2c], cx
mov edx, 0x72
mov word [ebp - 0x2a], dx
mov eax, 0x6f
mov word [ebp - 0x28], ax
mov ecx, 0x6d
mov word [ebp - 0x26], cx
mov edx, 0x65
mov word [ebp - 0x24], dx
xor eax, eax
mov word [ebp - 0x22], ax
cmp dword [ebp - 0x3e4], 0
jne 0x1001b69e
push 0
push 0x101392a0
lea ecx, [ebp - 0x3dc]
call fcn.1001a970
cmp eax, 0xffffffff
jne 0x1001b287
push 0
push str.TheWorld
lea ecx, [ebp - 0x3dc]
call fcn.1001a970
cmp eax, 0xffffffff
jne 0x1001b287
cmp dword [0x1016af78], 0
je 0x1001b69e
push 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x3dc]
call fcn.1001a970
cmp eax, 0xffffffff
jne 0x1001b287
push 0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x3dc]
call fcn.1001a970
cmp eax, 0xffffffff
je 0x1001b69e
mov dword [ebp - 0x400], 0x28
push 0x101392c4
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x40c], eax
push 0x1f4
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44c], 0
jne 0x1001b30c
mov edx, dword [ebp - 0x3e4]
mov dword [ebp - 0x440], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3dc]
call fcn.100159b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100159b0
mov eax, dword [ebp - 0x440]
jmp 0x1001b6d3
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x58]
push ecx
push 0
lea ecx, [ebp - 0x3dc]
call fcn.10010af0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1001b359
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x474], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x470], eax
jmp 0x1001b35b
jmp 0x1001b38f
mov ecx, dword [ebp - 0x400]
sub ecx, 1
mov dword [ebp - 0x400], ecx
cmp dword [ebp - 0x400], 0
jle 0x1001b38f
lea edx, [ebp - 0x4bc]
push edx
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1001b291
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x484]
call fcn.100371f0
mov dword [ebp - 0x4a8], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3dc]
call fcn.10010af0
push eax
lea ecx, [ebp - 0x484]
call fcn.10037d90
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x3fc]
call fcn.10015710
mov dword [ebp - 0x4ac], eax
mov byte [ebp - 4], 0x10
push 0x101392f8
push 0x10139300
lea ecx, [ebp - 0x3fc]
call fcn.1001b9a0
lea ecx, [ebp - 0x3f8]
call fcn.100157e0
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x3fc]
push edx
push 0x10139308
lea eax, [ebp - 0x3f8]
push eax
call fcn.1001a9f0
add esp, 0xc
lea ecx, [ebp - 0x3f8]
call fcn.10010af0
push eax
lea ecx, [ebp - 0x4f0]
push ecx
lea ecx, [ebp - 0x484]
call fcn.10037a10
mov dword [ebp - 0x4b4], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x4f0]
call fcn.100376e0
mov byte [ebp - 0x3de], al
movzx edx, byte [ebp - 0x3de]
test edx, edx
jne 0x1001b4cb
push 0x10139304
lea ecx, [ebp - 0x4f0]
call fcn.10037bf0
mov dword [ebp - 0x46c], eax
push 0xfde9
mov eax, dword [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x2d4]
call fcn.1001a900
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x468]
mov dword [ebp - 0x464], ecx
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x464]
call fcn.10010af0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.10015ac0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2d4]
call fcn.100159d0
mov dword [ebp - 0x3e4], 1
lea ecx, [ebp - 0x4f0]
call fcn.10037c30
lea ecx, [ebp - 0x484]
call fcn.10037600
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x4f0]
call fcn.10037420
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x3f8]
call fcn.100159b0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3fc]
call fcn.100159b0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x484]
call fcn.10037370
jmp 0x1001b68e
mov dword [ebp - 4], 1
jmp 0x1001b69e
jmp 0x1001ad97
mov ecx, dword [ebp - 0x3e4]
mov dword [ebp - 0x43c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3dc]
call fcn.100159b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100159b0
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100faee9
mov esp, ebp
pop ebp
ret 8