Function at 0x4067b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b69b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5ef220]
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 dword [ebp - 0x440], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x438], ebx
call fcn.0055c960
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00558864
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
add esp, 0x18
push eax
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push str.GamePatch
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call ebx
push str.reg.cfg
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b02
push 0x14
call fcn.00430e8a
add esp, 4
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40689b
mov ecx, eax
call fcn.00431e36
mov esi, eax
jmp 0x40689d
xor esi, esi
push 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
mov eax, dword [esi]
push 0x10
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x34]
call eax
mov dword [ebp - 0x42c], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430eb7
mov ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x428], eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push eax
call fcn.0055c960
mov edx, dword [esi]
add esp, 0x10
mov ecx, esi
push dword [ebp - 0x42c]
push dword [ebp - 0x428]
call dword [edx + 0x38]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
mov esi, dword [ebp - 0x428]
test esi, esi
je 0x406b02
push esi
lea ecx, [ebp - 0x430]
call fcn.0040f690
push esi
mov dword [ebp - 4], 1
call fcn.00430ec0
add esp, 4
lea ecx, [ebp - 0x434]
push str.gamepath
call fcn.0040f690
push dword [ebp - 0x438]
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.0040f690
push 0x5c4134
push 0x5c52e8
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call fcn.0040bd10
push dword [ebp - 0x424]
lea ecx, [ebp - 0x430]
push dword [ebp - 0x434]
call fcn.0040bd10
mov ecx, dword [ebp - 0x434]
push 0x206
mov edx, dword [ecx - 0xc]
mov ecx, dword [ebp - 0x424]
mov ecx, dword [ecx - 0xc]
sub ecx, edx
imul ecx, eax
mov eax, dword [ebp - 0x42c]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x438], eax
xor eax, eax
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0055c960
mov ecx, dword [ebp - 0x440]
lea eax, [ebp - 0x420]
add esp, 0xc
push eax
call fcn.00402a30
lea eax, [ebp - 0x420]
push eax
call ebx
push dword [ebp - 0x43c]
lea eax, [ebp - 0x420]
push eax
call edi
push 0x5c413c
lea eax, [ebp - 0x420]
push eax
call edi
push 0x14
call fcn.00430e8a
add esp, 4
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x406a3c
mov ecx, eax
call fcn.00431e36
mov esi, eax
jmp 0x406a3e
xor esi, esi
push 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x420]
mov eax, dword [esi]
push 0x1001
push ecx
mov ecx, esi
call dword [eax + 0x24]
push dword [ebp - 0x438]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x430]
call dword [eax + 0x3c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x420]
push eax
push str.MSG:_Convert_succeed__file_s__code_d
call fcn.0042abd0
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edx, dword [ebp - 0x424]
add esp, 0xc
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x406abb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x434]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406ade
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x406b02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
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.00557f7f
mov esp, ebp
pop ebp
ret 8