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

Disassembly:
sub esp, 0x184
mov eax, dword [0x596f48]
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 [0x5980ec], bl
mov dword [0x58c4d8], esi
mov dword [0x58c4dc], esi
mov dword [esp + 0x24], esi
call fcn.00522730
push str.Everything.lng
lea ecx, [esp + 0x80]
push ecx
call fcn.00523b50
mov edx, dword [esp + 0x84]
push 1
push edx
call fcn.004a9410
mov ebp, eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x64], ebp
call fcn.00401260
cmp ebp, esi
je 0x4a1b84
push edi
push str.lng_file_opened__n
call fcn.0048f0a0
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 0x4a191d
cmp dword [esp + 0x10], edi
jne 0x4a191d
mov eax, dword [esp + 0x1c]
push eax
push str.header_size__d_n
call fcn.0048f0a0
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 0x4a191d
cmp dword [esp + 0x10], edi
jne 0x4a191d
mov eax, dword [esp + 0x68]
push eax
push str.version__d_n
call fcn.0048f0a0
add esp, 8
cmp dword [esp + 0x68], 1
jne 0x4a191d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004a3fd0
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 0x4a1908
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x1c]
jne 0x4a1908
push str.got_header_n
call fcn.0048f0a0
add esp, 4
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x58], 0x4ad620
mov dword [esp + 0x5c], 0x4ad640
mov dword [esp + 0x60], ebx
call fcn.00528e50
test eax, eax
jne 0x4a1908
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [0x5981bc]
cmp eax, ebx
mov dword [esp + 0x28], edi
je 0x4a1742
call eax
jmp 0x4a1748
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.0048f0a0
add esp, 8
lea esi, [esp + 0x28]
call fcn.004a15a0
mov esi, eax
push esi
push str.count__d_n
mov dword [esp + 0x80], esi
call fcn.0048f0a0
add esp, 8
lea ecx, [esi*8]
push ecx
call fcn.004a3fd0
cmp esi, ebx
mov dword [0x5980f0], eax
mov dword [0x5980f4], esi
jle 0x4a18ae
lea ecx, [ecx]
cmp dword [esp + 0x2c], 0
lea edx, [esp + 0x5c]
mov dword [esp + 0x3c], 2
mov dword [esp + 0x38], edx
je 0x4a17e6
jmp 0x4a17c0
lea eax, [esp + 0x28]
push eax
call fcn.00529b10
test eax, eax
je 0x4a17d3
cmp eax, 4
jne 0x4a17e6
cmp dword [esp + 0x3c], 0
je 0x4a17ea
cmp eax, 4
je 0x4a17e6
cmp dword [esp + 0x2c], 0
jne 0x4a17c0
xor ebp, ebp
jmp 0x4a17ef
movzx ebp, word [esp + 0x5c]
lea esi, [esp + 0x28]
call fcn.004a15a0
mov edi, eax
mov dword [esp + 0x74], edi
call fcn.004a15a0
cmp ebp, dword [esp + 0x60]
mov dword [esp + 0x70], eax
jne 0x4a181b
mov dword [0x58c4dc], 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 0x4a1858
lea edx, [esp + 0x28]
push edx
call fcn.00529b10
test eax, eax
je 0x4a1845
cmp eax, 4
jne 0x4a1858
cmp dword [esp + 0x3c], 0
je 0x4a18be
cmp eax, 4
je 0x4a1858
cmp dword [esp + 0x2c], 0
jne 0x4a1832
push 0x55068a
call fcn.0051b6c0
mov ecx, dword [0x5980f0]
mov dword [ecx + ebx*8], eax
mov edx, dword [0x5980f0]
mov word [edx + ebx*8 + 4], bp
mov eax, dword [0x5980f0]
movzx ecx, word [eax + ebx*8 + 4]
cmp dword [esp + 0x198], ecx
jne 0x4a189d
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 0x4a17a0
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
call fcn.00529c00
jmp 0x4a190c
movzx edi, byte [esp + 0x23]
test edi, edi
je 0x4a1858
push edi
call fcn.004a3fd0
mov ecx, dword [0x5980f0]
mov dword [ecx + ebx*8], eax
mov edx, dword [0x5980f0]
mov word [edx + ebx*8 + 4], bp
mov ecx, dword [0x5980f0]
mov ecx, dword [ecx + ebx*8]
mov eax, edi
lea esi, [esp + 0x28]
call fcn.004a1560
mov edx, dword [0x5980f0]
mov eax, dword [edx + ebx*8]
mov byte [eax + edi - 1], 0
jmp 0x4a1876
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
push edx
call fcn.004a4030
cmp dword [esp + 0x24], 0xffffffff
jne 0x4a1953
mov eax, dword [0x58c4dc]
cmp eax, 0xffffffff
je 0x4a1b7c
cmp dword [esp + 0x198], 0x409
je 0x4a1b7c
cmp eax, 0xffffffff
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
je 0x4a1b7c
jmp 0x4a1957
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 0x4a1b7c
push edi
call fcn.004a3fd0
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 0x4a1b76
cmp dword [esp + 0x10], edi
jne 0x4a1b76
push 0
push 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x58], 0x4ad620
mov dword [esp + 0x5c], 0x4ad640
mov dword [esp + 0x60], 0
call fcn.00528e50
test eax, eax
jne 0x4a1b76
push 0x199c
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
call fcn.004a3fd0
mov dword [0x58de7c], eax
xor eax, eax
mov ecx, dword [eax + 0x58c4e0]
mov edx, dword [0x58de7c]
mov dword [eax + edx], ecx
add eax, 4
cmp eax, 0x199c
jl 0x4a19f0
cmp dword [esp + 0x2c], 0
mov edi, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
je 0x4a1a45
lea ecx, [esp + 0x28]
push ecx
call fcn.00529b10
test eax, eax
je 0x4a1a33
cmp eax, edi
jne 0x4a1a45
cmp dword [esp + 0x3c], 0
je 0x4a1a49
cmp eax, edi
je 0x4a1a45
cmp dword [esp + 0x2c], 0
jne 0x4a1a21
xor ebx, ebx
jmp 0x4a1a4d
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 0x4a1a84
lea eax, [esp + 0x28]
push eax
call fcn.00529b10
test eax, eax
je 0x4a1a72
cmp eax, edi
jne 0x4a1a84
cmp dword [esp + 0x3c], 0
je 0x4a1a88
cmp eax, edi
je 0x4a1a84
cmp dword [esp + 0x2c], 0
jne 0x4a1a60
xor esi, esi
jmp 0x4a1a9e
mov eax, dword [esp + 0x14]
cmp eax, 0x667
mov esi, eax
mov dword [esp + 0x18], esi
jle 0x4a1aa2
mov esi, 0x667
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x24]
and bl, 1
xor ebp, ebp
test esi, esi
mov dword [0x58c4d8], ecx
mov byte [0x5980ec], bl
jle 0x4a1b64
jmp 0x4a1ac6
mov edi, 4
cmp dword [esp + 0x2c], 0
lea edx, [esp + 0x14]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edx
je 0x4a1b46
lea esp, [esp]
lea eax, [esp + 0x28]
push eax
call fcn.00529b10
test eax, eax
je 0x4a1af2
cmp eax, edi
jne 0x4a1b46
cmp dword [esp + 0x3c], 0
je 0x4a1b06
cmp eax, edi
je 0x4a1b46
cmp dword [esp + 0x2c], 0
jne 0x4a1ae0
jmp 0x4a1b46
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a1b46
push edi
call fcn.004a3fd0
mov ecx, dword [0x58de7c]
mov dword [ecx + ebp*4], eax
mov edx, dword [0x58de7c]
mov ecx, dword [edx + ebp*4]
mov eax, edi
lea esi, [esp + 0x28]
call fcn.004a1560
test eax, eax
je 0x4a1b53
mov eax, dword [0x58de7c]
mov ecx, dword [eax + ebp*4]
mov esi, dword [esp + 0x18]
mov byte [ecx + edi - 1], 0
add ebp, 1
cmp ebp, esi
jl 0x4a1ac1
jmp 0x4a1b64
mov byte [0x5980ec], 0
mov dword [0x58c4d8], 0xffffffff
lea edx, [esp + 0x28]
push edx
call fcn.00529c00
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x64]
push esi
call fcn.004a4030
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.0054899c
add esp, 0x184
ret 4