Function at 0x440f60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x7c
push ebp
push esi
push edi
call fcn.0043e580
push 0
push 1
or ebp, 0xffffffff
push 0xe
push str.Everything.lng
mov dword [0x4aa7ac], ebp
mov dword [0x4aa7b8], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x2c], ebp
call fcn.00476070
mov esi, eax
push 0
push esi
call fcn.00444a80
mov edi, eax
push esi
mov dword [esp + 0x3c], edi
call fcn.00441a60
add esp, 0x1c
cmp edi, ebp
je 0x4414a7
push ebx
push str.lng_file_opened__n
call fcn.00430350
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
push 0
lea eax, [esp + 0x20]
push eax
mov esi, 4
push esi
lea ecx, [esp + 0x24]
push ecx
push edi
call ebx
test eax, eax
je 0x441259
cmp dword [esp + 0x1c], esi
jne 0x441259
mov edx, dword [esp + 0x18]
push edx
push str.header_size__d_n
call fcn.00430350
add esp, 8
push 0
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x38]
push ecx
push edi
call ebx
test eax, eax
je 0x441259
cmp dword [esp + 0x1c], esi
jne 0x441259
mov edx, dword [esp + 0x2c]
push edx
push str.version__d_n
call fcn.00430350
add esp, 8
cmp dword [esp + 0x2c], 1
jne 0x441259
mov eax, dword [esp + 0x18]
push eax
call fcn.00441a20
mov edx, dword [esp + 0x1c]
add esp, 4
push 0
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
mov eax, dword [esp + 0x2c]
push edx
push edi
push eax
mov dword [esp + 0x3c], edi
call ebx
test eax, eax
je 0x441250
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x18]
jne 0x441250
push str.got_header_n
call fcn.00430350
add esp, 4
push 0
push 0
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x8c], 0x437210
mov dword [esp + 0x90], 0x437230
mov dword [esp + 0x94], 0
call fcn.0047dd10
test eax, eax
jne 0x441250
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
lea esi, [esp + 0x5c]
mov dword [esp + 0x34], ebx
call fcn.00440f40
mov esi, eax
push esi
push str.count__d_n
mov dword [esp + 0x48], esi
call fcn.00430350
lea ecx, [esi*4]
push ecx
call fcn.00441a20
add esp, 0xc
xor ebp, ebp
test esi, esi
mov dword [0x4aa7b0], eax
mov dword [0x4aa7a8], esi
jle 0x44123c
and ebx, 0xff
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x60], 0
lea edx, [esp + 0x14]
mov dword [esp + 0x70], 2
mov dword [esp + 0x6c], edx
je 0x441166
lea esp, [esp]
lea eax, [esp + 0x5c]
push eax
call fcn.0047e9f0
test eax, eax
je 0x441153
cmp eax, 4
jne 0x441166
cmp dword [esp + 0x70], 0
je 0x44116a
cmp eax, 4
je 0x441166
cmp dword [esp + 0x60], 0
jne 0x441140
xor edi, edi
jmp 0x44116f
movzx edi, word [esp + 0x14]
lea esi, [esp + 0x5c]
call fcn.00440f40
mov ebx, eax
call fcn.00440f40
cmp edi, dword [esp + 0x34]
mov esi, eax
mov dword [esp + 0x3c], esi
jne 0x441199
mov dword [0x4aa7b8], ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], esi
cmp edi, dword [esp + 0x38]
jne 0x4411ab
mov dword [esp + 0x30], ebp
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], esi
cmp dword [esp + 0x60], 0
lea ecx, [esp + 0x13]
mov dword [esp + 0x70], 1
mov dword [esp + 0x6c], ecx
je 0x4411ec
lea edx, [esp + 0x5c]
push edx
call fcn.0047e9f0
test eax, eax
je 0x4411d5
cmp eax, 4
jne 0x4411ec
cmp dword [esp + 0x70], 0
je 0x44127a
cmp eax, 4
je 0x4411ec
cmp dword [esp + 0x60], 0
jne 0x4411c2
push 0x493d7a
call fcn.0044dba0
mov edx, dword [0x4aa7b0]
add esp, 4
mov dword [edx + ebp*4], eax
mov eax, dword [0x4aa7b0]
mov ecx, dword [eax + ebp*4]
mov edx, dword [esp + 0x90]
push ecx
push edx
call fcn.00402f60
add esp, 8
test eax, eax
jne 0x44122b
mov dword [esp + 0x20], ebp
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
add ebp, 1
cmp ebp, dword [esp + 0x40]
jl 0x441122
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x5c]
push eax
call fcn.0047eae0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x30]
push edi
call fcn.00441a60
add esp, 4
mov esi, dword [0x4aa7b8]
cmp esi, 0xffffffff
jne 0x4412c3
cmp ebp, esi
je 0x4412c3
mov edi, dword [esp + 0x48]
mov esi, ebp
mov ebp, dword [esp + 0x44]
mov dword [0x4aa7b8], esi
jmp 0x4412cb
movzx edi, byte [esp + 0x13]
test edi, edi
je 0x4411ec
push edi
call fcn.0044dbe0
mov ecx, dword [0x4aa7b0]
mov dword [ecx + ebp*4], eax
mov edx, dword [0x4aa7b0]
mov ecx, dword [edx + ebp*4]
add esp, 4
mov eax, edi
lea esi, [esp + 0x5c]
call fcn.00440f00
mov eax, dword [0x4aa7b0]
mov ecx, dword [eax + ebp*4]
mov esi, dword [esp + 0x3c]
mov byte [ecx + edi - 1], 0
jmp 0x441202
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
cmp dword [esp + 0x20], 0xffffffff
jne 0x441307
cmp esi, 0xffffffff
je 0x44149b
mov ecx, dword [esp + 0x90]
push str.English
push ecx
call fcn.00402f60
add esp, 8
test eax, eax
je 0x44149b
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
je 0x44149b
jmp 0x44130f
mov ebp, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push 0
push 0
lea eax, [edx + ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x18]
lea ecx, [edx + ebp + 8]
cmp eax, ecx
jne 0x44149b
push edi
call fcn.00441a20
add esp, 4
push 0
lea edx, [esp + 0x20]
push edx
mov esi, eax
mov eax, dword [esp + 0x2c]
push edi
push esi
push eax
mov dword [esp + 0x3c], esi
call ebx
test eax, eax
je 0x441492
cmp dword [esp + 0x1c], edi
jne 0x441492
push 0
push 0
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x8c], 0x437210
mov dword [esp + 0x90], 0x437230
mov dword [esp + 0x94], 0
call fcn.0047dd10
test eax, eax
jne 0x441492
mov dword [esp + 0x5c], esi
lea esi, [esp + 0x5c]
mov dword [esp + 0x60], edi
call fcn.00440f40
mov edi, eax
call fcn.00440f40
mov ebx, eax
cmp ebx, 0x24f
jle 0x4413c6
mov ebx, 0x24f
mov edx, dword [esp + 0x20]
and edi, 1
xor ebp, ebp
test ebx, ebx
mov dword [0x4aa7ac], edx
mov dword [0x4aa7b4], edi
jle 0x441484
cmp dword [esp + 0x60], 0
lea eax, [esp + 0x58]
mov dword [esp + 0x70], 4
mov dword [esp + 0x6c], eax
je 0x441468
lea ebx, [ebx]
lea ecx, [esp + 0x5c]
push ecx
call fcn.0047e9f0
test eax, eax
je 0x441413
cmp eax, 4
jne 0x441468
cmp dword [esp + 0x70], 0
je 0x441428
cmp eax, 4
je 0x441468
cmp dword [esp + 0x60], 0
jne 0x441400
jmp 0x441468
mov edi, dword [esp + 0x58]
test edi, edi
je 0x441468
push edi
call fcn.0044dbe0
mov edx, dword [0x4aa7bc]
mov dword [edx + ebp*4], eax
mov ecx, dword [0x4aa7bc]
mov ecx, dword [ecx + ebp*4]
add esp, 4
mov eax, edi
lea esi, [esp + 0x5c]
call fcn.00440f00
test eax, eax
je 0x441475
mov edx, dword [0x4aa7bc]
mov eax, dword [edx + ebp*4]
mov byte [eax + edi - 1], 0
add ebp, 1
cmp ebp, ebx
jl 0x4413e3
jmp 0x441484
call fcn.0043e580
mov dword [0x4aa7ac], 0xffffffff
lea ecx, [esp + 0x5c]
push ecx
call fcn.0047eae0
mov esi, dword [esp + 0x28]
push esi
call fcn.00441a60
add esp, 4
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x7c
ret