Function at 0x436420
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd2ea
mov eax, dword fs:[0]
push eax
sub esp, 0x84
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
mov ebx, dword [ebp + 0xc]
mov edx, 7
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x7c], 0
cmp dword [ecx + 0x14], edx
mov dword [ebp - 0x90], ebx
cmovl edx, dword [ecx + 0x14]
push edx
push 0
push eax
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::substr_int__int_
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [esi + 4]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x7c], 3
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 byte [ebp - 4], 1
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x8c], edi
cmp edx, 0x10
jb 0x436504
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4364fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4367e2
push edx
push ecx
call fcn.00475891
add esp, 8
mov dword [ebp - 0x18], 0
mov esi, 0x64
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
jne 0x436527
or esi, 0xffffffff
jmp 0x436781
push 2
push 0
push edi
call fcn.004876be
push edi
call fcn.00486ef1
push 0
push 0
push edi
mov dword [ebp - 0x80], eax
call fcn.004876be
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea eax, [ebx + 4]
mov dword [ebp - 0x30], 0
push eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x7c], 5
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 0x4d66b8
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004870f5
mov byte [ebp - 4], 1
add esp, 0x30
mov edx, dword [ebp - 0x2c]
mov ebx, eax
mov dword [ebp - 0x84], ebx
cmp edx, 0x10
jb 0x4365c9
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4365bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4367e7
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
test ebx, ebx
jne 0x4365f0
push edi
call fcn.00487369
add esp, 4
lea esi, [ebx - 3]
jmp 0x436781
mov ecx, edi
xor ebx, ebx
call fcn.00435920
cmp eax, 1
je 0x43660a
cmp eax, 2
je 0x43660a
mov esi, eax
jmp 0x43672c
push 0
push 0
push edi
call fcn.004876be
push dword [ebp - 0x80]
call fcn.004759b9
push edi
push 1
push dword [ebp - 0x80]
mov ebx, eax
push ebx
call fcn.0048802f
add esp, 0x20
cmp eax, 0xffffffff
jne 0x43663c
mov esi, 0xfffffff3
jmp 0x43672c
mov ecx, dword [ebx + 0x3c]
xor edi, edi
movzx eax, word [ecx + ebx + 0x14]
movzx edx, word [ecx + ebx + 6]
add eax, ecx
lea ecx, [ebx + 0x18]
mov dword [ebp - 0x88], edx
add ecx, eax
mov dword [ebp - 0x80], ecx
test edx, edx
je 0x436726
xor eax, eax
mov dword [ebp - 0x7c], eax
add eax, ecx
lea ecx, [ebp - 0x5c]
push eax
call sym.XNewLook.exe_public:_void___thiscall_LString::constructor_char_const__
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0047cdb1
add esp, 8
test eax, eax
jne 0x4366c5
push dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
push 1
push dword [ecx + eax + 8]
mov eax, dword [ecx + eax + 0x14]
add eax, ebx
push eax
call fcn.00487a5a
xor ecx, ecx
add esp, 0x10
cmp eax, 0xffffffff
mov esi, 0xfffffff1
cmovne esi, ecx
dec dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x5c], vtable.LString.0
cmp edx, 8
jb 0x43670c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4367e2
push edx
push ecx
call fcn.00475891
add esp, 8
mov eax, dword [ebp - 0x7c]
inc edi
add eax, 0x28
mov dword [ebp - 0x7c], eax
cmp edi, dword [ebp - 0x88]
jae 0x436726
mov ecx, dword [ebp - 0x80]
jmp 0x436668
mov edi, dword [ebp - 0x8c]
push edi
call fcn.00487369
mov edi, dword [ebp - 0x84]
push edi
call fcn.0048729a
push edi
call fcn.00487369
add esp, 0xc
test ebx, ebx
je 0x436754
push ebx
call fcn.004759e5
add esp, 4
test esi, esi
je 0x436781
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x5c]
push eax
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x5c]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
dec dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x78], vtable.LString.0
cmp edx, 8
jb 0x4367c4
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4367ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4367ec
push edx
push ecx
call fcn.00475891
add esp, 8
mov eax, esi
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
call fcn.0047cd61
int3