Function at 0x404480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4694
mov eax, dword fs:[0]
push eax
sub esp, 0x6b8
mov eax, dword [0x50f060]
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 0x4044dc
mov eax, dword [edi]
push eax
push str.Loading_e_1_37m_se_0m...e_K_r
call fcn.00464780
add esp, 8
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x4044f4
mov eax, dword [edi]
push 0x4d8bf0
push eax
call fcn.004a0dbe
add esp, 8
mov dword [ebp - 0x688], eax
test eax, eax
jne 0x404533
cmp dword [edi + 0x14], 0x10
jb 0x404514
mov edi, dword [edi]
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x40451f
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.00464820
add esp, 0xc
jmp 0x4047a3
push 2
push 0
push eax
call fcn.004a123f
push dword [ebp - 0x688]
call fcn.004a0c88
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.00464860
push dword [ebp - 0x688]
mov dword [ebp - 0x68c], eax
call fcn.004a16be
push dword [ebp - 0x688]
push esi
mov esi, dword [ebp - 0x68c]
push 1
push esi
call fcn.004a18ce
push dword [ebp - 0x688]
mov byte [eax + esi], 0
call fcn.004a0efa
add esp, 0x20
call fcn.0047c6e0
push eax
lea ecx, [ebp - 0x680]
call fcn.0047e120
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.0047e460
lea ecx, [ebp - 0x680]
mov dword [ebp - 4], 0xffffffff
call fcn.0047e3d0
call fcn.0047c6e0
push eax
lea ecx, [ebp - 0xac]
call fcn.0048fb10
mov dword [ebp - 4], 1
test esi, esi
je 0x40460b
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x404600
sub esi, ecx
jmp 0x40460d
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 0x404638
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x688], edi
jb 0x404642
mov eax, dword [edi]
mov dword [ebp - 0x688], eax
jmp 0x404642
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.0048fb10
push esi
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x694], 2
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403f50
push esi
push dword [ebp - 0x68c]
push dword [ebp - 0x6b0]
call fcn.00496b80
push esi
push dword [ebp - 0x68c]
call fcn.0047f320
add esp, 0x14
mov ecx, 0x10
cmp eax, ecx
cmovae ecx, eax
push ecx
lea ecx, [ebp - 0x12c]
call fcn.00491fc0
cmp dword [ebp - 0x128], 0
jne 0x4046d0
push 0x10
lea ecx, [ebp - 0x12c]
call fcn.00491fc0
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.0048ea80
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xac]
call fcn.0048fbd0
lea ecx, [ebp - 0x12c]
call fcn.0048fb90
mov esi, dword [ebp - 0x690]
mov dword [ebp - 4], 1
lea eax, [esi + 0x20]
cmp eax, edi
je 0x40474a
cmp dword [edi + 0x14], 0x10
jb 0x404735
mov edi, dword [edi]
mov eax, dword [ebp - 0x6a4]
push dword [eax]
push edi
lea edi, [esi + 0x20]
mov ecx, edi
call fcn.00405960
jmp 0x40474d
lea edi, [esi + 0x20]
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.00404060
test al, al
jne 0x4047c3
cmp dword [edi + 0x14], 0x10
jb 0x404767
mov edi, dword [edi]
add esi, 4
cmp dword [esi + 0x14], 0x10
jb 0x404772
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.00464820
mov ecx, dword [ebp - 0x68c]
mov edx, str.D:game_2023RO_2023_rathena_master_srccommondatabase.cpp
push str.YamlDatabase::load
push 0x7e
call fcn.00464ba0
add esp, 0x14
lea ecx, [ebp - 0xac]
call fcn.0048fb90
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.00494cb1
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.0048fc30
mov eax, dword [str.Clear]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov al, byte [0x4d8d50]
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.00404000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x681], al
cmp ecx, 0x10
jb 0x404868
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404858
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4049eb
push ecx
push edx
call fcn.00494cfb
mov al, byte [ebp - 0x681]
add esp, 8
test al, al
je 0x404926
mov eax, dword [str.Clear]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov al, byte [0x4d8d50]
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.004053b0
test al, al
je 0x4048d4
cmp byte [ebp - 0x681], 0
mov byte [ebp - 0x681], 1
jne 0x4048db
mov byte [ebp - 0x681], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x404916
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40490c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4049f0
push ecx
push edx
call fcn.00494cfb
add esp, 8
cmp byte [ebp - 0x681], 0
je 0x404926
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.00404a10
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call fcn.00404bc0
mov ecx, dword [ebp - 0x68c]
mov edx, str.D:game_2023RO_2023_rathena_master_srccommondatabase.cpp
push str.YamlDatabase::load
push 0x90
call fcn.00464ba0
add esp, 8
lea ecx, [ebp - 0xac]
call fcn.0048fb90
mov al, 1
jmp 0x4047a5
call fcn.004a1c3e
call fcn.004a1c3e
int3