Function at 0x40397b
Capabilities:
Check if file exists

Disassembly:
push 0xf8
mov eax, 0x481aa2
call fcn.0046638a
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4039c9
push 0x10
push 0x486298
push 0x4869bc
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
call fcn.0046640d
ret
call fcn.004144c8
test eax, eax
je 0x403a30
push edi
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x98], 0xf
call fcn.00404b61
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 4], edi
call fcn.00414922
test eax, eax
setne byte [ebp - 0x81]
or dword [ebp - 4], 0xffffffff
pop ecx
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0xb0]
call fcn.00404863
cmp byte [ebp - 0x81], 0
je 0x403ab9
push 0x30
push 0x48699c
push 0x4869d0
jmp 0x4039ba
call fcn.004139e2
test eax, eax
je 0x403a4a
push 0x30
push 0x48699c
push 0x4869f8
jmp 0x4039ba
lea ecx, [ebp - 0xb0]
call fcn.00413a6d
cmp dword [eax + 0x18], 8
jb 0x403a60
mov eax, dword [eax + 4]
jmp 0x403a63
add eax, 4
push eax
call fcn.0040ffe8
xor ebx, ebx
inc ebx
cmp edx, edi
ja 0x403a7f
jb 0x403a77
cmp eax, 0xa
jae 0x403a7f
mov byte [ebp - 0x81], bl
jmp 0x403a86
mov byte [ebp - 0x81], 0
push edi
push ebx
lea esi, [ebp - 0xb0]
call fcn.00404960
cmp byte [ebp - 0x81], 0
je 0x403ab3
push 0x30
push 0x48699c
push 0x486a14
push dword [ebp - 0x8c]
jmp 0x4039bb
mov esi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
mov edx, esi
call fcn.0040356b
test eax, eax
je 0x4039c1
push dword [ebp - 0x88]
lea esi, [ebp - 0xb0]
call fcn.00404522
mov eax, esi
push eax
lea eax, [ebp - 0xe8]
push eax
mov dword [ebp - 4], ebx
call fcn.004012f3
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 2
call fcn.00426da2
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00418d79
add esp, 0x14
push edi
push ebx
lea ecx, [ebp - 0xcc]
call fcn.00404863
push edi
push ebx
lea ecx, [ebp - 0xe8]
call fcn.00404863
push edi
push ebx
mov byte [ebp - 4], 7
call fcn.00404960
cmp dword [ebp - 0x68], 0x10
mov eax, dword [ebp - 0x7c]
jae 0x403b45
lea eax, [ebp - 0x7c]
push eax
push str.importOfflineRule
push 0x32cc
push str.http:__127.0.0.1:_d_ppmessage_message_spath_s
lea esi, [ebp - 0x64]
call fcn.0041142f
add esp, 0x10
push 0xf
pop esi
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], esi
call fcn.00404b61
mov byte [ebp - 4], 9
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x403b7f
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push ecx
push 0xbb8
push eax
call fcn.0040b617
add esp, 0xc
test eax, eax
jne 0x403bd4
push 0x10
push 0x486298
push 0x486a78
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor esi, esi
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404863
push edi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00404863
push edi
push ebx
lea ecx, [ebp - 0x80]
call fcn.00404863
mov eax, esi
jmp 0x4039c3
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x30], esi
call fcn.00404b61
push edi
push edi
lea eax, [ebp - 0xb0]
call fcn.0041ebf1
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], ebx
jae 0x403c09
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push eax
call fcn.0042725b
add esp, 0x10
test al, al
je 0x403c36
mov byte [ebp - 0x81], bl
cmp dword [ebp - 0x88], edi
je 0x403c3d
mov byte [ebp - 0x81], 0
lea esi, [ebp - 0xb0]
mov dword [ebp - 4], 0xa
call fcn.0041de24
cmp byte [ebp - 0x81], 0
je 0x403c69
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00404863
mov esi, ebx
jmp 0x403baf
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040126f
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x403c86
mov eax, dword [eax + 4]
jmp 0x403c89
add eax, 4
mov esi, dword [ebp - 0x8c]
push eax
push 0x486a8c
push 0x10
mov edi, 0x486298
call fcn.00410508
add esp, 0xc
push 0
push ebx
lea esi, [ebp - 0x104]
call fcn.00404960
push 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.00404863
xor esi, esi
xor edi, edi
jmp 0x403baf