Function at 0x4a1740
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.005247c0
mov edx, dword [esp + 0x84]
push 1
push edx
call fcn.004a9a10
mov ebp, eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x64], ebp
call fcn.00401230
cmp ebp, esi
je 0x4a1d04
push edi
push str.lng_file_opened__n
call fcn.0048f0d0
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 0x4a1a9d
cmp dword [esp + 0x10], edi
jne 0x4a1a9d
mov eax, dword [esp + 0x1c]
push eax
push str.header_size__d_n
call fcn.0048f0d0
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 0x4a1a9d
cmp dword [esp + 0x10], edi
jne 0x4a1a9d
mov eax, dword [esp + 0x68]
push eax
push str.version__d_n
call fcn.0048f0d0
add esp, 8
cmp dword [esp + 0x68], 1
jne 0x4a1a9d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004a49a0
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 0x4a1a88
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x1c]
jne 0x4a1a88
push str.got_header_n
call fcn.0048f0d0
add esp, 4
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x58], 0x4adab0
mov dword [esp + 0x5c], 0x4adad0
mov dword [esp + 0x60], ebx
call fcn.00529c10
test eax, eax
jne 0x4a1a88
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x598248]
cmp eax, ebx
mov dword [esp + 0x28], edi
je 0x4a18c2
call eax
jmp 0x4a18c8
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.0048f0d0
add esp, 8
lea esi, [esp + 0x28]
call fcn.004a1720
mov esi, eax
push esi
push str.count__d_n
mov dword [esp + 0x80], esi
call fcn.0048f0d0
add esp, 8
lea ecx, [esi*8]
push ecx
call fcn.004a49a0
cmp esi, ebx
mov dword [0x598174], eax
mov dword [0x598178], esi
jle 0x4a1a2e
lea ecx, [ecx]
cmp dword [esp + 0x2c], 0
lea edx, [esp + 0x5c]
mov dword [esp + 0x3c], 2
mov dword [esp + 0x38], edx
je 0x4a1966
jmp 0x4a1940
lea eax, [esp + 0x28]
push eax
call fcn.0052a8d0
test eax, eax
je 0x4a1953
cmp eax, 4
jne 0x4a1966
cmp dword [esp + 0x3c], 0
je 0x4a196a
cmp eax, 4
je 0x4a1966
cmp dword [esp + 0x2c], 0
jne 0x4a1940
xor ebp, ebp
jmp 0x4a196f
movzx ebp, word [esp + 0x5c]
lea esi, [esp + 0x28]
call fcn.004a1720
mov edi, eax
mov dword [esp + 0x74], edi
call fcn.004a1720
cmp ebp, dword [esp + 0x60]
mov dword [esp + 0x70], eax
jne 0x4a199b
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 0x4a19d8
lea edx, [esp + 0x28]
push edx
call fcn.0052a8d0
test eax, eax
je 0x4a19c5
cmp eax, 4
jne 0x4a19d8
cmp dword [esp + 0x3c], 0
je 0x4a1a3e
cmp eax, 4
je 0x4a19d8
cmp dword [esp + 0x2c], 0
jne 0x4a19b2
push 0x55065e
call fcn.0051c290
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 0x4a1a1d
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 0x4a1920
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
call fcn.0052a9c0
jmp 0x4a1a8c
movzx edi, byte [esp + 0x23]
test edi, edi
je 0x4a19d8
push edi
call fcn.004a49a0
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.004a16e0
mov edx, dword [0x598174]
mov eax, dword [edx + ebx*8]
mov byte [eax + edi - 1], 0
jmp 0x4a19f6
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
push edx
call fcn.004a4a00
cmp dword [esp + 0x24], 0xffffffff
jne 0x4a1ad3
mov eax, dword [0x58c54c]
cmp eax, 0xffffffff
je 0x4a1cfc
cmp dword [esp + 0x198], 0x409
je 0x4a1cfc
cmp eax, 0xffffffff
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
je 0x4a1cfc
jmp 0x4a1ad7
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 0x4a1cfc
push edi
call fcn.004a49a0
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 0x4a1cf6
cmp dword [esp + 0x10], edi
jne 0x4a1cf6
push 0
push 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x58], 0x4adab0
mov dword [esp + 0x5c], 0x4adad0
mov dword [esp + 0x60], 0
call fcn.00529c10
test eax, eax
jne 0x4a1cf6
push 0x199c
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
call fcn.004a49a0
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 0x4a1b70
cmp dword [esp + 0x2c], 0
mov edi, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
je 0x4a1bc5
lea ecx, [esp + 0x28]
push ecx
call fcn.0052a8d0
test eax, eax
je 0x4a1bb3
cmp eax, edi
jne 0x4a1bc5
cmp dword [esp + 0x3c], 0
je 0x4a1bc9
cmp eax, edi
je 0x4a1bc5
cmp dword [esp + 0x2c], 0
jne 0x4a1ba1
xor ebx, ebx
jmp 0x4a1bcd
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 0x4a1c04
lea eax, [esp + 0x28]
push eax
call fcn.0052a8d0
test eax, eax
je 0x4a1bf2
cmp eax, edi
jne 0x4a1c04
cmp dword [esp + 0x3c], 0
je 0x4a1c08
cmp eax, edi
je 0x4a1c04
cmp dword [esp + 0x2c], 0
jne 0x4a1be0
xor esi, esi
jmp 0x4a1c1e
mov eax, dword [esp + 0x14]
cmp eax, 0x667
mov esi, eax
mov dword [esp + 0x18], esi
jle 0x4a1c22
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 0x4a1ce4
jmp 0x4a1c46
mov edi, 4
cmp dword [esp + 0x2c], 0
lea edx, [esp + 0x14]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edx
je 0x4a1cc6
lea esp, [esp]
lea eax, [esp + 0x28]
push eax
call fcn.0052a8d0
test eax, eax
je 0x4a1c72
cmp eax, edi
jne 0x4a1cc6
cmp dword [esp + 0x3c], 0
je 0x4a1c86
cmp eax, edi
je 0x4a1cc6
cmp dword [esp + 0x2c], 0
jne 0x4a1c60
jmp 0x4a1cc6
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a1cc6
push edi
call fcn.004a49a0
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.004a16e0
test eax, eax
je 0x4a1cd3
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 0x4a1c41
jmp 0x4a1ce4
mov byte [0x598170], 0
mov dword [0x58c548], 0xffffffff
lea edx, [esp + 0x28]
push edx
call fcn.0052a9c0
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x64]
push esi
call fcn.004a4a00
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.00549750
add esp, 0x184
ret 4