Function at 0x4a16c0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x184
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
or esi, 0xffffffff
lea eax, [esp + 0x7c]
xor ebx, ebx
push eax
mov byte [0x598170], bl
mov dword [0x58c548], esi
mov dword [0x58c54c], esi
mov dword [esp + 0x24], esi
call fcn.00401210
push str.Everything.lng
lea ecx, [esp + 0x80]
push ecx
call fcn.00524690
mov edx, dword [esp + 0x84]
push 1
push edx
call fcn.004a9960
mov ebp, eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x64], ebp
call fcn.00523250
cmp ebp, esi
je 0x4a1c84
push edi
push str.lng_file_opened__n
call fcn.0048f080
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
push ebx
lea ecx, [esp + 0x14]
push ecx
mov edi, 4
push edi
lea edx, [esp + 0x28]
push edx
push ebp
call esi
test eax, eax
je 0x4a1a1d
cmp dword [esp + 0x10], edi
jne 0x4a1a1d
mov eax, dword [esp + 0x1c]
push eax
push str.header_size__d_n
call fcn.0048f080
add esp, 8
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x74]
push edx
push ebp
call esi
test eax, eax
je 0x4a1a1d
cmp dword [esp + 0x10], edi
jne 0x4a1a1d
mov eax, dword [esp + 0x68]
push eax
push str.version__d_n
call fcn.0048f080
add esp, 8
cmp dword [esp + 0x68], 1
jne 0x4a1a1d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004a48f0
push ebx
mov edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
push edi
push ebp
mov dword [esp + 0x6c], edi
call esi
test eax, eax
je 0x4a1a08
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x1c]
jne 0x4a1a08
push str.got_header_n
call fcn.0048f080
add esp, 4
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x58], 0x4ada30
mov dword [esp + 0x5c], 0x48faf0
mov dword [esp + 0x60], ebx
call fcn.00529af0
test eax, eax
jne 0x4a1a08
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x598248]
cmp eax, ebx
mov dword [esp + 0x28], edi
je 0x4a1842
call eax
jmp 0x4a1848
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
push eax
push str.system_default_lid__04x_n
mov dword [esp + 0x68], eax
call fcn.0048f080
add esp, 8
lea esi, [esp + 0x28]
call fcn.004a16a0
mov esi, eax
push esi
push str.count__d_n
mov dword [esp + 0x80], esi
call fcn.0048f080
add esp, 8
lea ecx, [esi*8]
push ecx
call fcn.004a48f0
cmp esi, ebx
mov dword [0x598174], eax
mov dword [0x598178], esi
jle 0x4a19ae
lea ecx, [ecx]
cmp dword [esp + 0x2c], 0
lea edx, [esp + 0x5c]
mov dword [esp + 0x3c], 2
mov dword [esp + 0x38], edx
je 0x4a18e6
jmp 0x4a18c0
lea eax, [esp + 0x28]
push eax
call fcn.0052a7b0
test eax, eax
je 0x4a18d3
cmp eax, 4
jne 0x4a18e6
cmp dword [esp + 0x3c], 0
je 0x4a18ea
cmp eax, 4
je 0x4a18e6
cmp dword [esp + 0x2c], 0
jne 0x4a18c0
xor ebp, ebp
jmp 0x4a18ef
movzx ebp, word [esp + 0x5c]
lea esi, [esp + 0x28]
call fcn.004a16a0
mov edi, eax
mov dword [esp + 0x74], edi
call fcn.004a16a0
cmp ebp, dword [esp + 0x60]
mov dword [esp + 0x70], eax
jne 0x4a191b
mov dword [0x58c54c], ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x7c], eax
cmp dword [esp + 0x2c], 0
lea ecx, [esp + 0x23]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], ecx
je 0x4a1958
lea edx, [esp + 0x28]
push edx
call fcn.0052a7b0
test eax, eax
je 0x4a1945
cmp eax, 4
jne 0x4a1958
cmp dword [esp + 0x3c], 0
je 0x4a19be
cmp eax, 4
je 0x4a1958
cmp dword [esp + 0x2c], 0
jne 0x4a1932
push 0x55065e
call fcn.0051c1e0
mov ecx, dword [0x598174]
mov dword [ecx + ebx*8], eax
mov edx, dword [0x598174]
mov word [edx + ebx*8 + 4], bp
mov eax, dword [0x598174]
movzx ecx, word [eax + ebx*8 + 4]
cmp dword [esp + 0x198], ecx
jne 0x4a199d
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
add ebx, 1
cmp ebx, dword [esp + 0x78]
jl 0x4a18a0
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
call fcn.0052a8a0
jmp 0x4a1a0c
movzx edi, byte [esp + 0x23]
test edi, edi
je 0x4a1958
push edi
call fcn.004a48f0
mov ecx, dword [0x598174]
mov dword [ecx + ebx*8], eax
mov edx, dword [0x598174]
mov word [edx + ebx*8 + 4], bp
mov ecx, dword [0x598174]
mov ecx, dword [ecx + ebx*8]
mov eax, edi
lea esi, [esp + 0x28]
call fcn.004a1660
mov edx, dword [0x598174]
mov eax, dword [edx + ebx*8]
mov byte [eax + edi - 1], 0
jmp 0x4a1976
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
push edx
call fcn.004a4950
cmp dword [esp + 0x24], 0xffffffff
jne 0x4a1a53
mov eax, dword [0x58c54c]
cmp eax, 0xffffffff
je 0x4a1c7c
cmp dword [esp + 0x198], 0x409
je 0x4a1c7c
cmp eax, 0xffffffff
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
je 0x4a1c7c
jmp 0x4a1a57
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
push 0
lea ecx, [esi + eax + 8]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x1c]
lea ecx, [esi + edx + 8]
cmp eax, ecx
jne 0x4a1c7c
push edi
call fcn.004a48f0
push 0
lea edx, [esp + 0x14]
push edx
mov esi, eax
push edi
push esi
push ebp
mov dword [esp + 0x6c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1c76
cmp dword [esp + 0x10], edi
jne 0x4a1c76
push 0
push 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x58], 0x4ada30
mov dword [esp + 0x5c], 0x48faf0
mov dword [esp + 0x60], 0
call fcn.00529af0
test eax, eax
jne 0x4a1c76
push 0x199c
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
call fcn.004a48f0
mov dword [0x58deec], eax
xor eax, eax
mov ecx, dword [eax + 0x58c550]
mov edx, dword [0x58deec]
mov dword [eax + edx], ecx
add eax, 4
cmp eax, 0x199c
jl 0x4a1af0
cmp dword [esp + 0x2c], 0
mov edi, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
je 0x4a1b45
lea ecx, [esp + 0x28]
push ecx
call fcn.0052a7b0
test eax, eax
je 0x4a1b33
cmp eax, edi
jne 0x4a1b45
cmp dword [esp + 0x3c], 0
je 0x4a1b49
cmp eax, edi
je 0x4a1b45
cmp dword [esp + 0x2c], 0
jne 0x4a1b21
xor ebx, ebx
jmp 0x4a1b4d
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x2c], 0
lea edx, [esp + 0x14]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edx
je 0x4a1b84
lea eax, [esp + 0x28]
push eax
call fcn.0052a7b0
test eax, eax
je 0x4a1b72
cmp eax, edi
jne 0x4a1b84
cmp dword [esp + 0x3c], 0
je 0x4a1b88
cmp eax, edi
je 0x4a1b84
cmp dword [esp + 0x2c], 0
jne 0x4a1b60
xor esi, esi
jmp 0x4a1b9e
mov eax, dword [esp + 0x14]
cmp eax, 0x667
mov esi, eax
mov dword [esp + 0x18], esi
jle 0x4a1ba2
mov esi, 0x667
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x24]
and bl, 1
xor ebp, ebp
test esi, esi
mov dword [0x58c548], ecx
mov byte [0x598170], bl
jle 0x4a1c64
jmp 0x4a1bc6
mov edi, 4
cmp dword [esp + 0x2c], 0
lea edx, [esp + 0x14]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edx
je 0x4a1c46
lea esp, [esp]
lea eax, [esp + 0x28]
push eax
call fcn.0052a7b0
test eax, eax
je 0x4a1bf2
cmp eax, edi
jne 0x4a1c46
cmp dword [esp + 0x3c], 0
je 0x4a1c06
cmp eax, edi
je 0x4a1c46
cmp dword [esp + 0x2c], 0
jne 0x4a1be0
jmp 0x4a1c46
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a1c46
push edi
call fcn.004a48f0
mov ecx, dword [0x58deec]
mov dword [ecx + ebp*4], eax
mov edx, dword [0x58deec]
mov ecx, dword [edx + ebp*4]
mov eax, edi
lea esi, [esp + 0x28]
call fcn.004a1660
test eax, eax
je 0x4a1c53
mov eax, dword [0x58deec]
mov ecx, dword [eax + ebp*4]
mov esi, dword [esp + 0x18]
mov byte [ecx + edi - 1], 0
add ebp, 1
cmp ebp, esi
jl 0x4a1bc1
jmp 0x4a1c64
mov byte [0x598170], 0
mov dword [0x58c548], 0xffffffff
lea edx, [esp + 0x28]
push edx
call fcn.0052a8a0
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x64]
push esi
call fcn.004a4950
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x18c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054962d
add esp, 0x184
ret 4