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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d37c2
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101120a8]
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.XNewLookSch.dll_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 0x100efc08
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100a1278
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 0x100307e0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100307d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10030a18
push edx
push ecx
call fcn.1008bfe4
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.XNewLookSch.dll_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 0x100efc64
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100a1278
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov edx, dword [ebp - 0x2c]
mov edi, eax
cmp edx, 0x10
jb 0x10030877
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003086d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10030a1d
push edx
push ecx
call fcn.1008bfe4
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 0x100309f9
test edi, edi
je 0x100309f9
push 2
push 0
push ebx
call fcn.100a0ba6
push ebx
call fcn.100a11a1
push 0
push 0
push ebx
mov dword [ebp - 0x44], eax
call fcn.100a0ba6
add esp, 0x1c
mov ecx, ebx
xor esi, esi
call fcn.1002db90
mov dword [ebp - 0x54], eax
cmp eax, 1
je 0x100308de
cmp eax, 2
je 0x100308de
mov dword [ebp - 0x50], eax
jmp 0x100309d8
push 0
push 0
push ebx
call fcn.100a0ba6
push dword [ebp - 0x44]
call fcn.1008bff2
push ebx
push 1
push dword [ebp - 0x44]
mov esi, eax
push esi
mov dword [ebp - 0x58], esi
call fcn.100a145b
add esp, 0x20
cmp eax, 0xffffffff
jne 0x10030915
mov dword [ebp - 0x50], 0xfffffffe
jmp 0x100309d8
push dword [ebp - 0x54]
mov edx, esi
mov ecx, 0xe
push 0
call fcn.10030590
add esp, 8
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x1003093c
mov dword [ebp - 0x50], 0xfffffffd
jmp 0x100309d8
movzx ecx, word [eax + 4]
push edi
push 1
push 6
push eax
mov dword [ebp - 0x44], ecx
call fcn.100a04c8
add esp, 0x10
mov dword [ebp - 0x4c], 0x40
cmp dword [ebp - 0x44], 0
jbe 0x100309d8
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.100a04c8
push edi
push 1
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.100a04c8
push dword [ebp - 0x54]
movzx eax, word [esi + 4]
mov edx, ebx
push eax
mov ecx, 3
call fcn.10030590
push 0
push dword [ebp - 0x4c]
mov esi, eax
push edi
call fcn.100a0ba6
mov eax, dword [ebp - 0x48]
push edi
push 1
push dword [eax]
push esi
call fcn.100a04c8
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 0x10030970
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x58]
push edi
call fcn.1009ffb4
push ebx
call fcn.1009ffb4
add esp, 8
test esi, esi
je 0x100309f4
push esi
call fcn.1008c032
add esp, 4
mov eax, dword [ebp - 0x50]
jmp 0x100309fc
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.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
call fcn.10092486
int3