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

Disassembly:
sub esp, 0x190
push ebx
push esi
or esi, 0xffffffff
lea eax, [esp + 0x88]
push eax
mov byte [0x58b37c], 0
mov dword [0x580440], esi
mov dword [0x580444], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x24], esi
call fcn.0051ec40
push str.Everything.lng
lea ecx, [esp + 0x8c]
push ecx
call fcn.0051fff0
mov edx, dword [esp + 0x90]
push 1
push edx
call fcn.004a74a0
mov ebx, eax
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x64], ebx
call fcn.00522920
cmp ebx, esi
je 0x49fb35
push ebp
push edi
push str.lng_file_opened__n
call fcn.0048dc10
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
push 0
lea ecx, [esp + 0x14]
push ecx
mov esi, 4
push esi
lea edx, [esp + 0x28]
push edx
push ebx
call ebp
test eax, eax
je 0x49f897
cmp dword [esp + 0x10], esi
jne 0x49f897
mov eax, dword [esp + 0x1c]
push eax
push str.header_size__d_n
call fcn.0048dc10
add esp, 8
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x7c]
push edx
push ebx
call ebp
test eax, eax
je 0x49f897
cmp dword [esp + 0x10], esi
jne 0x49f897
mov eax, dword [esp + 0x70]
push eax
push str.version__d_n
call fcn.0048dc10
add esp, 8
cmp dword [esp + 0x70], 1
jne 0x49f897
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004a2340
push 0
mov edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
push edi
push ebx
mov dword [esp + 0x70], edi
call ebp
test eax, eax
je 0x49f88b
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x1c]
jne 0x49f88b
push str.got_header_n
call fcn.0048dc10
add esp, 4
push 0
push 0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x5c], 0x4ab150
mov dword [esp + 0x60], 0x48e640
mov dword [esp + 0x64], 0
call fcn.00525180
test eax, eax
jne 0x49f88b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [0x58b458]
test eax, eax
mov dword [esp + 0x2c], edi
je 0x49f676
call eax
jmp 0x49f67c
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
push edi
push str.system_default_lid__04x_n
mov dword [esp + 0x7c], edi
call fcn.0048dc10
add esp, 8
lea esi, [esp + 0x2c]
call fcn.0049f4d0
mov esi, eax
push esi
push str.count__d_n
mov dword [esp + 0x90], esi
call fcn.0048dc10
add esp, 8
lea ecx, [esi*8]
push ecx
call fcn.004a2340
xor ebp, ebp
test esi, esi
mov dword [0x58b380], eax
mov dword [0x58b384], esi
jle 0x49f818
and edi, 0xff
mov dword [esp + 0x8c], edi
cmp dword [esp + 0x30], 0
lea edx, [esp + 0x60]
mov dword [esp + 0x40], 2
mov dword [esp + 0x3c], edx
je 0x49f726
jmp 0x49f700
lea eax, [esp + 0x2c]
push eax
call fcn.00525e40
test eax, eax
je 0x49f713
cmp eax, 4
jne 0x49f726
cmp dword [esp + 0x40], 0
je 0x49f72a
cmp eax, 4
je 0x49f726
cmp dword [esp + 0x30], 0
jne 0x49f700
xor edi, edi
jmp 0x49f72f
movzx edi, word [esp + 0x60]
lea esi, [esp + 0x2c]
mov dword [esp + 0x18], edi
call fcn.0049f4d0
mov ebx, eax
call fcn.0049f4d0
cmp edi, dword [esp + 0x74]
mov dword [esp + 0x80], eax
jne 0x49f75e
mov dword [0x580444], ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x14], eax
cmp edi, dword [esp + 0x8c]
jne 0x49f776
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x78], ebx
mov dword [esp + 0x84], eax
cmp dword [esp + 0x30], 0
lea ecx, [esp + 0x23]
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], ecx
je 0x49f7ba
lea ecx, [ecx]
lea edx, [esp + 0x2c]
push edx
call fcn.00525e40
test eax, eax
je 0x49f7a3
cmp eax, 4
jne 0x49f7ba
cmp dword [esp + 0x40], 0
je 0x49f838
cmp eax, 4
je 0x49f7ba
cmp dword [esp + 0x30], 0
jne 0x49f790
push 0x5465b6
call fcn.00517e60
mov ecx, dword [0x58b380]
mov dword [ecx + ebp*8], eax
mov edx, dword [0x58b380]
mov ax, word [esp + 0x18]
mov word [edx + ebp*8 + 4], ax
mov ecx, dword [0x58b380]
movzx edx, word [ecx + ebp*8 + 4]
cmp dword [esp + 0x1a4], edx
jne 0x49f804
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x24], eax
add ebp, 1
cmp ebp, dword [esp + 0x88]
jl 0x49f6e0
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
call fcn.00525f30
mov edi, dword [esp + 0x5c]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call fcn.004a23a0
jmp 0x49f89b
movzx edi, byte [esp + 0x23]
test edi, edi
je 0x49f7ba
push edi
call fcn.004a2340
mov ecx, dword [0x58b380]
mov dword [ecx + ebp*8], eax
mov edx, dword [0x58b380]
mov ax, word [esp + 0x18]
mov word [edx + ebp*8 + 4], ax
mov ecx, dword [0x58b380]
mov ecx, dword [ecx + ebp*8]
mov eax, edi
lea esi, [esp + 0x2c]
call fcn.0049f490
mov edx, dword [0x58b380]
mov eax, dword [edx + ebp*8]
mov byte [eax + edi - 1], 0
jmp 0x49f7dd
mov esi, dword [esp + 0x24]
push edi
call fcn.004a23a0
jmp 0x49f89b
mov esi, dword [esp + 0x24]
mov eax, dword [0x580444]
cmp eax, 0xffffffff
mov edi, dword [esp + 0x64]
jne 0x49f8c5
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
je 0x49f8c5
mov edx, dword [esp + 0x84]
mov eax, ecx
mov ecx, dword [esp + 0x78]
mov dword [0x580444], eax
jmp 0x49f8cd
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x28], 0xffffffff
jne 0x49f8ff
cmp eax, 0xffffffff
je 0x49fb2c
cmp dword [esp + 0x1a4], 0x409
je 0x49fb2c
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
mov edi, ecx
mov esi, edx
je 0x49fb2c
mov edx, dword [esp + 0x1c]
push 0
push 0
lea eax, [edi + edx + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x1c]
lea edx, [edi + ecx + 8]
cmp eax, edx
jne 0x49fb2c
push esi
call fcn.004a2340
mov edi, eax
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ebx
mov dword [esp + 0x70], edi
call ebp
test eax, eax
je 0x49fb26
cmp dword [esp + 0x10], esi
jne 0x49fb26
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x5c], 0x4ab150
mov dword [esp + 0x60], 0x48e640
mov dword [esp + 0x64], 0
call fcn.00525180
test eax, eax
jne 0x49fb26
push 0x199c
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
call fcn.004a2340
mov dword [0x581de4], eax
xor eax, eax
jmp 0x49f9a0
mov edx, dword [eax + 0x580448]
mov ecx, dword [0x581de4]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x199c
jl 0x49f9a0
cmp dword [esp + 0x30], 0
mov edi, 4
lea edx, [esp + 0x14]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edx
je 0x49f9f5
lea eax, [esp + 0x2c]
push eax
call fcn.00525e40
test eax, eax
je 0x49f9e3
cmp eax, edi
jne 0x49f9f5
cmp dword [esp + 0x40], 0
je 0x49f9f9
cmp eax, edi
je 0x49f9f5
cmp dword [esp + 0x30], 0
jne 0x49f9d1
xor ebx, ebx
jmp 0x49f9fd
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x30], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ecx
je 0x49fa34
lea edx, [esp + 0x2c]
push edx
call fcn.00525e40
test eax, eax
je 0x49fa22
cmp eax, edi
jne 0x49fa34
cmp dword [esp + 0x40], 0
je 0x49fa38
cmp eax, edi
je 0x49fa34
cmp dword [esp + 0x30], 0
jne 0x49fa10
xor esi, esi
jmp 0x49fa4e
mov eax, dword [esp + 0x14]
cmp eax, 0x667
mov esi, eax
mov dword [esp + 0x18], esi
jle 0x49fa52
mov esi, 0x667
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
and bl, 1
xor ebp, ebp
test esi, esi
mov dword [0x580440], eax
mov byte [0x58b37c], bl
jle 0x49fb14
jmp 0x49fa75
mov edi, 4
cmp dword [esp + 0x30], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ecx
je 0x49faf6
jmp 0x49fa90
lea edx, [esp + 0x2c]
push edx
call fcn.00525e40
test eax, eax
je 0x49faa2
cmp eax, edi
jne 0x49faf6
cmp dword [esp + 0x40], 0
je 0x49fab6
cmp eax, edi
je 0x49faf6
cmp dword [esp + 0x30], 0
jne 0x49fa90
jmp 0x49faf6
mov edi, dword [esp + 0x14]
test edi, edi
je 0x49faf6
push edi
call fcn.004a2340
mov ecx, dword [0x581de4]
mov dword [ecx + ebp*4], eax
mov edx, dword [0x581de4]
mov ecx, dword [edx + ebp*4]
mov eax, edi
lea esi, [esp + 0x2c]
call fcn.0049f490
test eax, eax
je 0x49fb03
mov eax, dword [0x581de4]
mov ecx, dword [eax + ebp*4]
mov esi, dword [esp + 0x18]
mov byte [ecx + edi - 1], 0
add ebp, 1
cmp ebp, esi
jl 0x49fa70
jmp 0x49fb14
mov byte [0x58b37c], 0
mov dword [0x580440], 0xffffffff
lea edx, [esp + 0x2c]
push edx
call fcn.00525f30
mov ebx, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
push edi
call fcn.004a23a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x190
ret 4