Function at 0x4384b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd532
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], 0
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push ecx
add eax, 4
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x44], 1
call sym.XNewLook.exe_public:_static_int___cdecl_LString::ws2str_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____unsigned_int_
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x4d664c
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004870f5
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
cmp edx, 0x10
jb 0x438570
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438566
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4387a8
push edx
push ecx
call fcn.00475891
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea eax, [esi + 4]
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x44], 2
call sym.XNewLook.exe_public:_static_int___cdecl_LString::ws2str_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____unsigned_int_
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0x4d66a8
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004870f5
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov edx, dword [ebp - 0x2c]
mov edi, eax
cmp edx, 0x10
jb 0x438607
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4385fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4387ad
push edx
push ecx
call fcn.00475891
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x50], 0x64
test ebx, ebx
je 0x438789
test edi, edi
je 0x438789
push 2
push 0
push ebx
call fcn.004876be
push ebx
call fcn.00486ef1
push 0
push 0
push ebx
mov dword [ebp - 0x44], eax
call fcn.004876be
add esp, 0x1c
mov ecx, ebx
xor esi, esi
call fcn.00435920
mov dword [ebp - 0x54], eax
cmp eax, 1
je 0x43866e
cmp eax, 2
je 0x43866e
mov dword [ebp - 0x50], eax
jmp 0x438768
push 0
push 0
push ebx
call fcn.004876be
push dword [ebp - 0x44]
call fcn.004759b9
push ebx
push 1
push dword [ebp - 0x44]
mov esi, eax
push esi
mov dword [ebp - 0x58], esi
call fcn.0048802f
add esp, 0x20
cmp eax, 0xffffffff
jne 0x4386a5
mov dword [ebp - 0x50], 0xfffffffe
jmp 0x438768
push dword [ebp - 0x54]
mov edx, esi
mov ecx, 0xe
push 0
call fcn.00438320
add esp, 8
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4386cc
mov dword [ebp - 0x50], 0xfffffffd
jmp 0x438768
movzx ecx, word [eax + 4]
push edi
push 1
push 6
push eax
mov dword [ebp - 0x44], ecx
call fcn.00487a5a
add esp, 0x10
mov dword [ebp - 0x4c], 0x40
cmp dword [ebp - 0x44], 0
jbe 0x438768
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x58]
add esi, 0xe
mov dword [ebp - 0x48], esi
nop word [eax + eax]
push edi
push 1
lea eax, [esi - 8]
push 0xc
push eax
call fcn.00487a5a
push edi
push 1
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.00487a5a
push dword [ebp - 0x54]
movzx eax, word [esi + 4]
mov edx, ebx
push eax
mov ecx, 3
call fcn.00438320
push 0
push dword [ebp - 0x4c]
mov esi, eax
push edi
call fcn.004876be
mov eax, dword [ebp - 0x48]
push edi
push 1
push dword [eax]
push esi
call fcn.00487a5a
mov esi, dword [ebp - 0x48]
add esp, 0x44
mov eax, dword [esi]
add esi, 0xe
add dword [ebp - 0x4c], eax
sub dword [ebp - 0x44], 1
mov dword [ebp - 0x48], esi
jne 0x438700
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x58]
push edi
call fcn.00487369
push ebx
call fcn.00487369
add esp, 8
test esi, esi
je 0x438784
push esi
call fcn.004759e5
add esp, 4
mov eax, dword [ebp - 0x50]
jmp 0x43878c
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
call fcn.0047cd61
call fcn.0047cd61
int3