Function at 0x412960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f1be
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x469090]
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 eax, dword [ebp + 8]
mov esi, edx
push str.reading_tail_MD_...
mov ebx, ecx
push str.INFO
mov ecx, esi
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], esi
call fcn.0040c980
push 0x218
call fcn.004372a1
mov edi, eax
add esp, 4
mov dword [ebp - 0x25c], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x412a47
push 0xc
mov dword [edi + 4], eax
call fcn.004372a1
add esp, 4
test eax, eax
je 0x412a10
push ebx
mov dword [edi], eax
mov dword [eax], eax
mov eax, dword [edi]
push 0x458e0c
lea ecx, [edi + 0xc]
push 0x104
mov dword [eax + 4], eax
push ecx
mov dword [edi + 0x214], esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
mov dword [ebp - 0x254], edi
jmp 0x412a4d
lea edx, [ebp - 0x26c]
push edx
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x26c], 0
call fcn.004373a9
push 0x462f60
lea eax, [ebp - 0x278]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0043948f
mov dword [ebp - 0x254], eax
push 0x20
mov dword [ebp - 4], 0xffffffff
call fcn.0043723a
mov ebx, dword [ebp + 0xc]
add esp, 4
push 0x28
mov edi, eax
call fcn.004372a1
add esp, 4
test eax, eax
je 0x412a94
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov esi, eax
mov dword [eax + 0x24], ecx
jmp 0x412a96
xor esi, esi
mov dword [ebp - 0x258], esi
lea esp, [esp]
mov ecx, dword [ebp - 0x264]
push 0
push 0
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 0x264]
push 0
lea edx, [ebp - 0x260]
push edx
push 0x20
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x412c1c
mov ecx, dword [ebp - 0x260]
test ecx, ecx
je 0x412c1c
xor eax, eax
test ecx, ecx
je 0x412aa0
cmp eax, 0x20
jae 0x412c1c
test eax, eax
jne 0x412afc
cmp byte [edi], al
je 0x412c1c
mov cl, byte [eax + edi]
mov byte [eax + esi], cl
cmp byte [eax + edi], 0
je 0x412b14
inc eax
inc ebx
cmp eax, dword [ebp - 0x260]
jb 0x412ae7
jmp 0x412aa0
movzx edx, byte [eax + edi + 1]
mov byte [esi + 0x20], dl
mov cl, byte [eax + edi + 2]
mov byte [esi + 0x21], cl
movzx edx, byte [eax + edi + 3]
mov ecx, dword [ebp - 0x254]
mov byte [esi + 0x22], dl
mov al, byte [eax + edi + 4]
mov byte [esi + 0x23], al
add ebx, 5
mov dword [esi + 0x24], ebx
add ebx, dword [esi + 0x20]
lea edx, [ebp - 0x258]
mov dword [ebp - 0x25c], ebx
mov ebx, dword [ecx]
mov eax, dword [ebx + 4]
push edx
push eax
push ebx
call fcn.004031c0
mov ecx, dword [ebp - 0x254]
mov ecx, dword [ecx + 4]
mov edx, 0x3ffffffe
sub edx, ecx
cmp edx, 1
jb 0x412c12
mov edx, dword [ebp - 0x254]
inc ecx
mov dword [edx + 4], ecx
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412b90
push 0x1f
sub eax, edx
lea edx, [ebp - 0x50]
push edx
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
js 0x412bc3
cmp eax, 0x1f
jae 0x412bbd
xor ecx, ecx
mov word [ebp + eax*2 - 0x50], cx
jmp 0x412bc3
xor edx, edx
mov word [ebp - 0x14], dx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
lea edx, [ebp - 0x50]
push edx
push str.item_name_s__len_d__offset_d
lea eax, [ebp - 0x250]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea ecx, [ebp - 0x250]
push ecx
mov ecx, dword [ebp - 0x268]
push str.INFO
call fcn.0040c980
push 0x28
call fcn.004372a1
mov ebx, dword [ebp - 0x25c]
jmp 0x412a6a
push str.list_T__too_long
call fcn.0044b6d0
push esi
call fcn.00437245
add esp, 4
push edi
call fcn.00437245
mov eax, dword [ebp - 0x254]
add esp, 4
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.0043722b
mov esp, ebp
pop ebp
ret 8