Function at 0x40b62e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x520
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x520], eax
mov esi, 0x504
xor eax, eax
push esi
push eax
mov dword [ebp - 0x51c], eax
mov ebx, eax
mov dword [ebp - 0x518], eax
mov dword [ebp - 0x50c], eax
lea eax, [ebp - 0x508]
push eax
call fcn.00427a90
add esp, 0xc
lea eax, [ebp - 0x510]
lea edi, [esi - 1]
mov dword [ebp - 0x510], edi
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x514]
push eax
push str.Path
call fcn.004027f3
push eax
push 0x80000002
call fcn.0040bd22
add esp, 0x18
test eax, eax
jne 0x40b6c5
cmp dword [ebp - 0x514], 1
jne 0x40b6c5
cmp dword [ebp - 0x510], 1
jge 0x40b712
push esi
xor esi, esi
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00427a90
add esp, 0xc
lea eax, [ebp - 0x508]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 1
jl 0x40b8d5
cmp byte [ebp - 0x508], bl
je 0x40b8d5
lea eax, [ebp - 0x508]
push 0x5c
push eax
call fcn.00427bf0
pop ecx
pop ecx
test eax, eax
je 0x40b712
mov byte [eax], bl
lea ecx, [ebp - 0x508]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b71b
sub ecx, edx
cmp byte [ebp + ecx - 0x509], 0x5c
je 0x40b746
lea edi, [ebp - 0x508]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b735
mov ax, word [0x44dad4]
mov word [edi], ax
lea edi, [ebp - 0x508]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b74d
mov esi, str.KaLang.xml
lea eax, [ebp - 0x508]
push 0
push 0x80
push 3
movsd dword es:[edi], dword [esi]
push 0
push 3
push 0x80000000
movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x40b7a0
lea eax, [ebp - 0x51c]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b7ae
mov ecx, 0x4010
push 0x10
mov dword [ebp - 0x50c], ecx
pop ebx
mov eax, dword [ebp - 0x51c]
cmp eax, dword [0x467fbc]
jne 0x40b7ce
mov eax, dword [ebp - 0x518]
cmp eax, dword [0x467fc0]
je 0x40b8ee
cmp edi, 0xffffffff
je 0x40b888
lea eax, [ebp - 0x508]
push 0x44ca20
push eax
call fcn.0042d736
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x40b7fd
mov ecx, 0x400c
or ebx, 0x20
jmp 0x40b8f4
push 2
push esi
push edi
call fcn.0042e36d
push edi
call fcn.0042e966
push esi
push esi
push edi
mov dword [ebp - 0x510], eax
call fcn.0042e36d
add esp, 0x1c
cmp dword [ebp - 0x510], 1
jge 0x40b834
push edi
call fcn.0042d5ea
or ebx, 0x80
jmp 0x40b887
mov esi, dword [ebp - 0x510]
lea eax, [esi + 0xa]
push eax
push 1
call fcn.0042dfca
mov dword [ebp - 0x514], eax
pop ecx
pop ecx
push edi
test eax, eax
jne 0x40b868
call fcn.0042d5ea
pop ecx
mov ecx, 0x4099
or ebx, 0x100
jmp 0x40b8f4
push esi
push 1
push eax
call fcn.0042d919
add esp, 0x10
cmp eax, esi
je 0x40b87b
or ebx, 0x40
push edi
call fcn.0042d5ea
mov esi, dword [ebp - 0x514]
pop ecx
call fcn.0040bdbf
or ebx, 2
test esi, esi
je 0x40b8b7
push 0x467fc4
push esi
call fcn.0040b911
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x50c], ecx
test ecx, ecx
jne 0x40b8b2
or ebx, 1
jmp 0x40b8bd
or ebx, 4
jmp 0x40b8bd
mov ecx, dword [ebp - 0x50c]
mov eax, dword [ebp - 0x51c]
mov dword [0x467fbc], eax
mov eax, dword [ebp - 0x518]
mov dword [0x467fc0], eax
jmp 0x40b8e3
mov ecx, 0x401b
push 8
mov dword [ebp - 0x50c], ecx
pop ebx
test esi, esi
je 0x40b8f4
push esi
call fcn.0042a45a
pop ecx
mov ecx, dword [ebp - 0x50c]
mov eax, dword [ebp - 0x520]
test eax, eax
je 0x40b900
mov dword [eax], ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret