Function at 0x401251
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0040bb5d
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x427337
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
jmp 0x4012aa
push 0
mov ebx, 0x104
call fcn.0040c0c0
add esp, 4
mov dword [ebp - 0x1c], eax
push str.SP.key
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4012e7
push ebx
call fcn.0040bb63
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 6
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40130c
mov eax, 0x4272a8
push eax
push 3
mov ebx, 0x270
call fcn.0040c150
add esp, 0x28
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401332
push ebx
call fcn.0040bb63
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x28c
call fcn.0040c240
add esp, 0x10
push 0
push 0
push 0
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x29c
call fcn.0040c2b0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
call fcn.00401ff4
mov dword [ebp - 0x20], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x401394
mov eax, 0x4272a8
push eax
push 1
mov ebx, 0x178
call fcn.0040ca60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4013ba
push ebx
call fcn.0040bb63
add esp, 4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004021f7
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4013da
push ebx
call fcn.0040bb63
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4013ea
push ebx
call fcn.0040bb63
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4013fd
mov eax, 0x4272a8
push eax
push 1
mov ebx, 0x198
call fcn.0040cd40
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401423
push ebx
call fcn.0040bb63
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401437
push ebx
call fcn.0040bb63
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x4272a9
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402a7a
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40146f
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x24], 1
jle 0x401537
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x4272b2
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402a7a
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4014ad
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x34], 1
jle 0x401537
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov eax, 0x4272bb
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402a7a
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4014eb
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x44], 1
jle 0x401537
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov eax, 0x4272c4
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00402a7a
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x401529
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x54], 1
jle 0x401537
xor eax, eax
jmp 0x40153c
mov eax, 1
test eax, eax
je 0x40163f
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x28c
call fcn.0040c240
add esp, 0x10
call fcn.00401ff4
mov dword [ebp - 0x1c], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40157b
mov eax, 0x4272a8
push eax
push 1
mov ebx, 0x178
call fcn.0040ca60
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4015a1
push ebx
call fcn.0040bb63
add esp, 4
mov eax, str.SP.key
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402b21
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4015c9
push ebx
call fcn.0040bb63
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4015d9
push ebx
call fcn.0040bb63
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4015ec
mov eax, 0x4272a8
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x2a0
call fcn.0040ce10
add esp, 0x1c
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401619
push ebx
call fcn.0040bb63
add esp, 4
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x278
call fcn.0040d060
add esp, 0x10
mov eax, 0
jmp 0x401f62
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x278
call fcn.0040d060
add esp, 0x10
push 0x80000004
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov ebx, 0x100
call fcn.0040d070
add esp, 0x10
mov ebx, dword [ebp - 0xc]
call fcn.004010c7
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jg 0x4019f1
push 0
mov ebx, 0x104
call fcn.0040c0c0
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x4272cd
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4016ca
push ebx
call fcn.0040bb63
add esp, 4
mov dword [ebp - 0x24], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4016f6
push 0x5b4
push 0x4010001
push 6
call fcn.0040bb6f
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401709
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x4019e7
push 0
mov ebx, 0x104
call fcn.0040c0c0
add esp, 4
mov dword [ebp - 0x1c], eax
push str.Hotta_
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401750
push ebx
call fcn.0040bb63
add esp, 4
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, 0x4272dc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402d8b
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40177e
push ebx
call fcn.0040bb63
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40178e
push ebx
call fcn.0040bb63
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
push 0
mov ebx, 0x104
call fcn.0040c0c0
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x4272cd
push dword [ebp - 0x1c]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4017d1
push ebx
call fcn.0040bb63
add esp, 4
push 0
push 0
push 0
push 0x80000301
push 0
push 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4017f6
mov eax, 0x4272a8
push eax
push 3
mov ebx, 0x270
call fcn.0040c150
add esp, 0x28
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40181c
push ebx
call fcn.0040bb63
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4019c8
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x290
call fcn.0040d210
add esp, 0x10
mov ebx, dword [ebp - 0xc]
call fcn.004010e0
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x40187f
push 0x73f
push 0x4010001
push 4
call fcn.0040bb6f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40189c
push 0x73f
push 0x4010001
push 1
call fcn.0040bb6f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0
mov ebx, 0x104
call fcn.0040c0c0
add esp, 4
mov dword [ebp - 0x20], eax
push 0x4272e0
push dword [ebp - 0x20]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4018e1
push ebx
call fcn.0040bb63
add esp, 4
push 1
mov eax, 0x4272e2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, 0x4272e0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4272e4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
call fcn.0040364e
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401928
push ebx
call fcn.0040bb63
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401938
push ebx
call fcn.0040bb63
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401948
push ebx
call fcn.0040bb63
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401958
push ebx
call fcn.0040bb63
add esp, 4
push 0x4272ef
push dword [ebp - 0x34]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x401980
push ebx
call fcn.0040bb63
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x401993
mov eax, 0x4272a8
push eax
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x2a0
call fcn.0040ce10
add esp, 0x1c
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4019c0
push ebx
call fcn.0040bb63
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x40182e
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x278
call fcn.0040d060
add esp, 0x10
push 0
call fcn.0040bb4b
add esp, 4
mov ebx, dword [ebp - 0xc]
call fcn.004010e0
mov eax, 0
cmp eax, ecx
jl 0x401a19
push 0x872
push 0x4010001
push 1
call fcn.0040bb6f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x401a3f
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0040bb5d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401a50
push ebx
call fcn.0040bb63
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x401a73
mov eax, 0x4272a8
push eax
push 2
mov ebx, 0x138
call fcn.0040d270
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push str..pak
push dword [ebp - 0x1c]
call fcn.00401100
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401ab7
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x401e3c
mov ebx, 6
call fcn.0040119d
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x401ade
mov eax, 0x4272a8
push eax
push 3
mov ebx, 0x270
call fcn.0040c150
add esp, 0x28
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0xffffff80
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x288
call fcn.0040d2d0
add esp, 0x28
push 0x80000301
push 0
push 5
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x294
call fcn.0040d390
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, 0x4272f8
xor ecx, ecx
test eax, eax
je 0x401b61
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x401b72
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x401b89
dec eax
test ecx, ecx
je 0x401b89
call fcn.004011a5
add esp, 0xc
test eax, eax
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401ba9
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x401bbd
mov eax, 0
jmp 0x401f62
push 0x80000301
push 0
push 0xffffffdb
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x288
call fcn.0040d2d0
add esp, 0x28
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x294
call fcn.0040d390
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, 0x427305
xor ecx, ecx
test eax, eax
je 0x401c2a
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x401c3b
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x401c52
dec eax
test ecx, ecx
je 0x401c52
call fcn.004011a5
add esp, 0xc
test eax, eax
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401c72
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x401cd8
push 0x80000301
push 0
push 0xfffffffc
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x288
call fcn.0040d2d0
add esp, 0x28
push 0x80000005
push 0
push 0x427311
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x298
call fcn.0040d4f0
add esp, 0x1c
push 0x80000301
push 0
push 0x18
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x288
call fcn.0040d2d0
add esp, 0x28
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x294
call fcn.0040d390
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov eax, 0x42731d
xor ecx, ecx
test eax, eax
je 0x401d45
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x401d56
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x401d6d
dec eax
test ecx, ecx
je 0x401d6d
call fcn.004011a5
add esp, 0xc
test eax, eax
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401d8d
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x401dbf
push 0x80000005
push 0
push 0x427305
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x298
call fcn.0040d4f0
add esp, 0x1c
push 0x80000301
push 0
push 0xffffffb3
push 0x80000301
push 0
push 3
push 0x80000301
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x288
call fcn.0040d2d0
add esp, 0x28
push 0x80000301
push 0
push 0xe5a
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x2b0
call fcn.0040d700
add esp, 0x1c
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x278
call fcn.0040d060
add esp, 0x10
jmp 0x401f48
push 0x80000301
push 0
push 7
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x401e5b
mov eax, 0x4272a8
push eax
push 2
mov ebx, 0x138
call fcn.0040d270
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push str..uasset
push dword [ebp - 0x1c]
call fcn.00401100
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401e9f
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x401f1a
push 0x80000301
push 0
push 5
push 0x80000004
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x401ec8
mov eax, 0x4272a8
push eax
push 2
mov ebx, 0x138
call fcn.0040d270
add esp, 0x1c
mov dword [ebp - 0x24], eax
push str..umap
push dword [ebp - 0x24]
call fcn.00401100
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401f0c
push ebx
call fcn.0040bb63
add esp, 4
cmp dword [ebp - 0x28], 0
jne 0x401f1a
xor eax, eax
jmp 0x401f1f
mov eax, 1
test eax, eax
je 0x401f3f
mov dword [0x42784f], 1
lea eax, [ebp - 0x18]
push eax
call fcn.004037af
jmp 0x401f48
lea eax, [ebp - 0x18]
push eax
call fcn.00403f26
mov eax, 0
jmp 0x401f62
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401f73
push ebx
call fcn.0040bb63
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401f91
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401f8d
imul eax, dword [ebx]
jmp 0x401f82
mov ecx, eax
test ecx, ecx
je 0x401fb0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401fa9
push ebx
push eax
call fcn.0040bb63
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401f97
call fcn.0040bb63
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401fc8
push ebx
call fcn.0040bb63
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret