Function at 0x403ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed774
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
mov eax, dword [0x53e060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x690], esi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x694], 0
mov dword [ebp - 0x698], esi
mov dword [ebp - 0x6a8], edi
cmp dword [edi + 0x14], 0x10
jb 0x40404c
mov eax, dword [edi]
push eax
push str.Loading_e_1_37m_se_0m...e_K_r
call fcn.0049e6f0
add esp, 8
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x404064
mov eax, dword [edi]
push 0x502c00
push eax
call fcn.004ca5ae
add esp, 8
mov dword [ebp - 0x688], eax
test eax, eax
jne 0x4040a3
cmp dword [edi + 0x14], 0x10
jb 0x404084
mov edi, dword [edi]
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x40408f
mov esi, dword [esi]
push edi
push esi
push str.Failed_to_open__s_database_file_from_e_1_37m_se_0m._n
call fcn.0049e790
add esp, 0xc
jmp 0x404313
push 2
push 0
push eax
call fcn.004caa2f
push dword [ebp - 0x688]
call fcn.004ca478
mov esi, eax
add esp, 0xc
mov edx, str.D:game_2023RO_2023_rathena_master_srccommondatabase.cpp
push 0x65
lea ecx, [esi + 1]
call fcn.0049e7d0
push dword [ebp - 0x688]
mov dword [ebp - 0x68c], eax
call fcn.004caeae
push dword [ebp - 0x688]
push esi
mov esi, dword [ebp - 0x68c]
push 1
push esi
call fcn.004cb0be
push dword [ebp - 0x688]
mov byte [eax + esi], 0
call fcn.004ca6ea
add esp, 0x20
call fcn.004a6340
push eax
lea ecx, [ebp - 0x680]
call fcn.004a7d70
mov eax, dword [ebp - 0x690]
lea ecx, [ebp - 0x680]
add eax, 0x3c
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
mov dword [ebp - 0x6a0], eax
call fcn.004a80b0
lea ecx, [ebp - 0x680]
mov dword [ebp - 4], 0xffffffff
call fcn.004a8020
call fcn.004a6340
push eax
lea ecx, [ebp - 0xac]
call fcn.004b9750
mov dword [ebp - 4], 1
test esi, esi
je 0x40417b
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x404170
sub esi, ecx
jmp 0x40417d
xor esi, esi
lea eax, [edi + 0x10]
mov dword [ebp - 0x6a4], eax
mov eax, dword [eax]
mov dword [ebp - 0x69c], eax
test eax, eax
je 0x4041a8
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x688], edi
jb 0x4041b2
mov eax, dword [edi]
mov dword [ebp - 0x688], eax
jmp 0x4041b2
mov dword [ebp - 0x688], 0
mov eax, dword [ebp - 0x690]
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 3
movups xmm0, xmmword [eax + 0x520]
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.004b9750
push esi
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x694], 2
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403ac0
push esi
push dword [ebp - 0x68c]
push dword [ebp - 0x6b0]
call fcn.004c0370
push esi
push dword [ebp - 0x68c]
call fcn.004a8f70
add esp, 0x14
mov ecx, 0x10
cmp eax, ecx
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x12c]
call fcn.004bbc00
cmp dword [ebp - 0x128], 0
jne 0x404240
push 0x10
lea ecx, [ebp - 0x12c]
call fcn.004bbc00
mov ecx, dword [ebp - 0x6a0]
lea eax, [ebp - 0x12c]
push 0
push eax
push dword [ebp - 0x6ac]
push dword [ebp - 0x6b0]
push dword [ebp - 0x69c]
push dword [ebp - 0x688]
call fcn.004b86c0
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xac]
call fcn.004b9810
lea ecx, [ebp - 0x12c]
call fcn.004b97d0
mov esi, dword [ebp - 0x690]
mov dword [ebp - 4], 1
lea eax, [esi + 0x20]
cmp eax, edi
je 0x4042ba
cmp dword [edi + 0x14], 0x10
jb 0x4042a5
mov edi, dword [edi]
mov eax, dword [ebp - 0x6a4]
push dword [eax]
push edi
lea edi, [esi + 0x20]
mov ecx, edi
call fcn.00405500
jmp 0x4042bd
lea edi, [esi + 0x20]
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.00403bd0
test al, al
jne 0x404333
cmp dword [edi + 0x14], 0x10
jb 0x4042d7
mov edi, dword [edi]
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x4042e2
mov esi, dword [esi]
push edi
push esi
push str.Failed_to_verify_compatibility_with__s_database_file_from_e_1_37m_se_0m._n
call fcn.0049e790
mov ecx, dword [ebp - 0x68c]
mov edx, str.D:game_2023RO_2023_rathena_master_srccommondatabase.cpp
push str.YamlDatabase::load
push 0x7e
call fcn.0049eb10
add esp, 0x14
lea ecx, [ebp - 0xac]
call fcn.004b97d0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004be4ac
mov esp, ebp
pop ebp
ret 4
sub esp, 8
lea ecx, [ebp - 0xac]
mov eax, esp
mov dword [eax], str.Header
mov dword [eax + 4], 6
lea eax, [ebp - 0x6c4]
push eax
call fcn.004b9870
mov eax, dword [str.Clear]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov al, byte [0x502d60]
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x6c4]
push eax
call fcn.00403b70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x681], al
cmp ecx, 0x10
jb 0x4043d8
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4043c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40455b
push ecx
push edx
call fcn.004be4f6
mov al, byte [ebp - 0x681]
add esp, 8
test al, al
je 0x404496
mov eax, dword [str.Clear]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov al, byte [0x502d60]
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0
lea eax, [ebp - 0x681]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x694], 1
push eax
lea eax, [ebp - 0x6c4]
mov ecx, esi
push eax
call fcn.00404f20
test al, al
je 0x404444
cmp byte [ebp - 0x681], 0
mov byte [ebp - 0x681], 1
jne 0x40444b
mov byte [ebp - 0x681], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x404486
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40447c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404560
push ecx
push edx
call fcn.004be4f6
add esp, 8
cmp byte [ebp - 0x681], 0
je 0x404496
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.00404580
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.00404730
mov ecx, dword [ebp - 0x68c]
mov edx, str.D:game_2023RO_2023_rathena_master_srccommondatabase.cpp
push str.YamlDatabase::load
push 0x90
call fcn.0049eb10
add esp, 8
lea ecx, [ebp - 0xac]
call fcn.004b97d0
mov al, 1
jmp 0x404315
call fcn.004cb42e
call fcn.004cb42e
int3