Function at 0x4aa950
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x58dfbe
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf4]
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.004923c0
add esp, 4
xor ebx, ebx
mov edi, 8
mov dword [esp + 0xec], ebx
cmp dword [eax + 0x18], edi
jb 0x4aa9b9
mov esi, dword [eax + 4]
jmp 0x4aa9bc
lea esi, [eax + 4]
mov ecx, dword [0x5ef5f4]
test ecx, ecx
jne 0x4aa9cb
call fcn.00404b70
push esi
push 0x5d3f1c
call fcn.0047b0e0
add esp, 8
mov dword [esp + 0xec], 0xffffffff
cmp dword [esp + 0x30], edi
jb 0x4aa9f7
mov edx, dword [esp + 0x1c]
push edx
call fcn.005273b8
add esp, 4
mov edi, 0x10
lea esi, [ebp + 4]
cmp dword [ebp + 0x18], edi
jb 0x4aaa08
mov eax, dword [esi]
jmp 0x4aaa0a
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4aab5d
lea eax, [esp + 0x34]
push eax
call fcn.004ab350
mov dword [esp + 0xec], 1
cmp dword [ebp + 0x18], edi
jb 0x4aaa35
mov esi, dword [esi]
push esi
lea esi, [esp + 0x3c]
call fcn.004ac020
test eax, eax
jne 0x4aaa6e
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x3c]
lea ecx, [esp + ecx + 0x34]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4aaa5d
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4aaa6e
push ebx
call fcn.0040ff30
lea esi, [esp + 0x38]
call fcn.00494be0
test eax, eax
jne 0x4aaaa6
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + 4]
mov eax, dword [esp + ecx + 0x3c]
lea ecx, [esp + ecx + 0x34]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x4aaa95
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4aaaa6
push ebx
call fcn.0040ff30
push 0x148
mov esi, 0xf
push str.CREATE_TABLE_news_opt_softid____________CHAR_50______NOT_NULL_clkforms__________CHAR_50______NOT_NULL_opentype____________INT_____NOT_NULL_opentimes____________INT_____NOT_NULL_clicktimes____________INT_____NOT_NULL_showsec____________INT_____NOT_NULL_timestamp____________INT_____NOT_NULL_operate_date_______INT_____NOT_NULL___
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
call fcn.00405bb0
mov byte [esp + 0xec], 2
mov eax, dword [esp + 0xc4]
cmp dword [esp + 0xd8], edi
jae 0x4aaaf5
lea eax, [esp + 0xc4]
push eax
mov ecx, ebp
call fcn.004ab110
cmp dword [esp + 0xd8], edi
jb 0x4aab16
mov eax, dword [esp + 0xc4]
push eax
call fcn.005273b8
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
mov dword [esp + 0xec], 0xffffffff
call fcn.004ab400
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.0052688a
add esp, 4
mov edx, dword [0x5ef5f4]
test edx, edx
jne 0x4aab6c
call fcn.00404b70
push str.Init_2
call fcn.0047b0e0
add esp, 4
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.005273c3
add esp, 0xdc
ret 4