Function at 0x411560
Capabilities:
Delete file

Disassembly:
sub esp, 0x54
mov eax, dword [0x5cab48]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
push str._data_
lea eax, [esp + 0x28]
push str.SGIRDS_ROOT
push eax
mov esi, ecx
call fcn.00413c20
add esp, 8
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00401590
add esp, 0xc
cmp dword [esp + 0x38], 0x10
jb 0x4115a9
push dword [esp + 0x24]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
push str..wlst
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x44]
push 0x55c990
push eax
call fcn.00401860
add esp, 0xc
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00401590
add esp, 0xc
lea ecx, [esp + 0xc]
push 0xffffffffffffffff
push 0
push eax
call fcn.00407e00
cmp dword [esp + 0x38], 0x10
jb 0x4115f4
push dword [esp + 0x24]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x50], 0x10
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x41161c
push dword [esp + 0x3c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x88], 0x10
lea eax, [esp + 0x74]
cmovae eax, dword [esp + 0x74]
push eax
push str.WhiteList___s_
push 0x50f
push str.SGIRDSObj::writeWhiteListForDevice
push str.sgirdsobj.cpp
lea eax, [esp + 0x38]
push 5
push eax
call fcn.00415f20
add esp, 0x1c
cmp dword [esp + 0x38], 0x10
jb 0x411664
push dword [esp + 0x24]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x84], 0
lea eax, [esp + 0xc]
jne 0x411727
cmp dword [esp + 0x20], 0x10
cmovae eax, dword [esp + 0xc]
push eax
call sub.MSVCR110.dll_remove
push dword [esp + 0xc]
lea eax, [esp + 0xf]
push eax
push dword [esi + 0x334]
push dword [esi + 0x330]
call fcn.00401a50
mov eax, dword [esi + 0x330]
add esp, 0x14
mov dword [esi + 0x334], eax
cmp dword [esp + 0x20], 0x10
jb 0x4116c2
push dword [esp + 0xc]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x70], 0x10
mov byte [esp + 0xc], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xf
jb 0x4116ea
push dword [esp + 0x5c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
jb 0x411715
push dword [esp + 0x74]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
call fcn.0055423a
add esp, 0x54
ret 0x30
cmp dword [esp + 0x20], 0x10
lea ecx, [esp + 0x74]
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call fcn.00415cb0
add esp, 8
sub esp, 0x18
mov ecx, esp
test eax, eax
je 0x411773
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x7c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004080f0
mov ecx, esi
call fcn.0040df80
jmp 0x4116af
push str.Write_failed_for_wlist
call fcn.00402640
push 0x2329
lea ecx, [esp + 0x40]
call fcn.00416410
mov esi, eax
push esi
lea ecx, [esp + 0x40]
call sub.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__
mov dword [esp + 0x3c], vtable.SGIException.0
mov eax, dword [esi + 0xc]
mov dword [esp + 0x48], eax
push 0x5be8f4
lea eax, [esp + 0x40]
push eax
call sub.MSVCR110.dll__CxxThrowException
int3