Function at 0x10061df0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009b170
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cd8ec]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x180]
mov edi, dword [esp + 0x184]
mov esi, ecx
push 0x1009fc09
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor ebp, ebp
lea ecx, [esp + 0x98]
mov dword [esp + 0x178], ebp
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x17], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
add esi, 0xe0
push esi
lea ecx, [esp + 0x9c]
mov byte [esp + 0x17c], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.1006a9b0
push eax
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.config
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
call fcn.1006a9b0
push eax
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.xecureweb.cfg
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0xb0], 0x10
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
jae 0x10061ef2
lea eax, [esp + 0x9c]
mov ecx, dword [esp + 0xac]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push 0xfde9
call fcn.1007e450
add esp, 0x14
test eax, eax
je 0x10061f63
push str.config_file_path_failed_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
add esp, 8
lea ecx, [esp + 0x98]
mov byte [esp + 0x178], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x178], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or eax, 0xffffffff
jmp 0x10062297
mov ecx, dword [esp + 0x18]
push 0x100ad89c
push ecx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, ebp
mov dword [esp + 0x20], esi
jne 0x10061fac
push str.config_file_does_not_exist_n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, ebp
je 0x10061f2e
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x10061f2e
push esi
lea edx, [esp + 0xf0]
push 0x80
push edx
call dword [sym.imp.MSVCR80.dll_fgets]
mov ebp, dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
test eax, eax
je 0x1006217e
add dword [esp + 0x1c], 1
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 1
push 0
push 0x100ad8c8
lea ecx, [esp + 0x88]
mov byte [esp + 0x184], 2
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x1006201d
lea edx, [esp + 0x7c]
push edx
jmp 0x10062136
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
jb 0x1006202b
mov eax, dword [ebx + 4]
jmp 0x1006202e
lea eax, [ebx + 4]
push ecx
push 0
push eax
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x10062131
push 1
push 0
push 0x100a0034
lea ecx, [esp + 0x88]
mov byte [esp + 0x23], 1
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
je 0x100622c1
lea esi, [eax + 1]
mov eax, dword [esp + 0x90]
push eax
push esi
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
lea edx, [esp + 0xd0]
push edi
push edx
mov byte [esp + 0x180], 3
call dword [0x1009f154]
add esp, 8
test al, al
je 0x10062104
mov eax, dword [esp + 0x90]
push 0x100a6b28
push edi
push eax
push esi
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::replace_unsigned_int__unsigned_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push eax
lea ecx, [esp + 0x30]
push ecx
call ebp
add esp, 0xc
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x17c], 4
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x28]
mov byte [esp + 0x178], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0xb8]
call dword [0x1009f134]
lea ecx, [esp + 0xd0]
mov byte [esp + 0x178], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x20]
jmp 0x10062143
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xb8]
call dword [0x1009f134]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x178], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
lea ecx, [esp + 0xf0]
push 0x80
push ecx
call dword [sym.imp.MSVCR80.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x10061fd1
cmp byte [esp + 0x17], al
jne 0x10062204
push 0x100a0034
lea eax, [esp + 0x48]
push ebx
push eax
call ebp
push edi
push eax
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0x190], 5
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 0x100a6b28
push eax
lea edx, [esp + 0x48]
mov bl, 6
push edx
mov byte [esp + 0x19c], bl
call ebp
add esp, 0x24
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x17c], 7
call dword [0x1009f134]
lea ecx, [esp + 0x28]
mov byte [esp + 0x178], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0x178], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x44]
mov byte [esp + 0x178], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
push esi
call edi
mov eax, dword [esp + 0x1c]
push 0x100ad8c4
push eax
call dword [sym.imp.MSVCR80.dll__wfopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10062256
cmp dword [esp + 0xcc], 0x10
mov eax, dword [esp + 0xb8]
jae 0x1006223e
lea eax, [esp + 0xb8]
mov ecx, dword [esp + 0xc8]
push esi
push 1
push ecx
push eax
call dword [sym.imp.MSVCR80.dll_fwrite]
push esi
call edi
add esp, 0x14
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10062268
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0x178], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb4]
mov dword [esp + 0x178], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.10090e24
add esp, 0x168
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.bad_config_file_format_line:___d__n
call dword [sym.imp.MSVCR80.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR80.dll_fprintf]
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je 0x100622f7
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
lea ecx, [esp + 0x7c]
mov byte [esp + 0x178], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x10061f2e