Function at 0x402100
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x406a36
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x40a018]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp eax, 4
mov ebx, dword [ebp + 0xc]
jge 0x40217a
push eax
push str.argc___d_argv_is_error_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
mov eax, dword [ebx]
add esp, 0xc
push eax
push str._s_base_dir__autoupdate_urlservicereboot_cmd___installdown__n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
jmp 0x40275a
push 1
push 3
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov dword [esp + 0x210], 0
mov ecx, dword [ebx + 4]
push ecx
mov ecx, 0x40a49c
call dword [sym.imp.MSVCP90.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__]
mov esi, dword [ebx + 0xc]
mov ecx, str.install
mov eax, esi
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4021d0
test dl, dl
je 0x4021cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4021d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4021b0
xor eax, eax
jmp 0x4021d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022f9
mov ecx, dword [ebx + 8]
push ecx
mov ecx, 0x40a4b8
mov byte [0x40a0bc], al
call dword [sym.imp.MSVCP90.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 1
push 3
lea ecx, [esp + 0x144]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
push 1
push 3
lea ecx, [esp + 0xbc]
mov byte [esp + 0x218], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_int_]
mov byte [esp + 0x210], 2
mov edx, dword [0x40a4b0]
dec edx
push edx
mov ecx, 0x40a49c
call dword [sym.imp.MSVCP90.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp byte [eax], 0x2f
je 0x40224b
push 0x4073e4
mov ecx, 0x40a49c
call dword [0x4070a4]
push str..autoupdate_temp_
lea eax, [esp + 0x1e8]
push 0x40a49c
push eax
call dword [sym.imp.MSVCP90.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
push eax
mov ecx, 0x40a50c
mov byte [esp + 0x214], 3
call dword [sym.imp.MSVCP90.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 + 0x1e4]
mov byte [esp + 0x210], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push str..autoupdate2.conf
lea ecx, [esp + 0xc0]
push 0x40a49c
push ecx
call esi
add esp, 8
push eax
call fcn.004030a0
add esp, 8
push str..autoupdate.conf
lea edx, [esp + 0x148]
push 0x40a49c
push edx
call esi
add esp, 8
push eax
call fcn.004030a0
add esp, 8
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x40234a
mov eax, dword [eax + 4]
jmp 0x40234d
mov ecx, str.down
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402320
test dl, dl
je 0x40231c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402320
add eax, 2
add ecx, 2
test dl, dl
jne 0x402300
xor eax, eax
jmp 0x402325
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402734
mov edx, dword [ebx + 8]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [0x40a0bc], 1
call fcn.004030a0
add esp, 8
jmp 0x4021f1
add eax, 4
push 0x407290
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x402366
xor bl, bl
jmp 0x402386
push 0x40a48c
push 0x40728c
push esi
call dword [sym.imp.MSVCR90.dll_fscanf]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov bl, 1
lea ecx, [esp + 0x1e4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [0x40a0bc], 0
je 0x40252f
test bl, bl
jne 0x4023d2
lea ecx, [esp + 0x1e4]
push ecx
lea ecx, [esp + 0x140]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], edi
jb 0x4023c8
mov eax, dword [eax + 4]
call fcn.004011b0
jmp 0x4023fe
add eax, 4
call fcn.004011b0
jmp 0x4023fe
lea edx, [esp + 0x1e4]
push edx
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], edi
jb 0x4023f1
mov eax, dword [eax + 4]
jmp 0x4023f4
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll__unlink]
add esp, 4
lea ecx, [esp + 0x1e4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [0x40a510]
cmp dword [0x40a524], edi
jae 0x40241d
mov eax, 0x40a510
push eax
call dword [sym.imp.MSVCR90.dll__mkdir]
add esp, 4
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], edi
jb 0x402443
mov eax, dword [eax + 4]
jmp 0x402446
add eax, 4
push 0x3f
push eax
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
lea ecx, [esp + 0x1e4]
setne bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x402474
push 0x407424
lea ecx, [esp + 0x38]
push ecx
jmp 0x40247e
push 0x407428
lea edx, [esp + 0x38]
push edx
call fcn.004030a0
mov eax, dword [0x40a48c]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x3c]
push 0x40742c
push ecx
call fcn.004030a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
call fcn.00404a20
lea ecx, [esp + 0x2c]
call fcn.00401cb0
test al, al
je 0x40254b
cmp dword [0x40a4ec], 0
jbe 0x4026f1
call fcn.004039b0
lea ecx, [esp + 0xb4]
test al, al
jne 0x402502
mov byte [esp + 0x210], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x13c]
mov byte [esp + 0x210], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
jmp 0x402745
lea edx, [esp + 0x1e4]
push edx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], edi
jb 0x402522
mov eax, dword [eax + 4]
call fcn.004011f0
jmp 0x4026e4
add eax, 4
call fcn.004011f0
jmp 0x4026e4
test bl, bl
jne 0x40257a
push str.no_autoupdate_to_install_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
lea ecx, [esp + 0xb4]
mov byte [esp + 0x210], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x13c]
mov byte [esp + 0x210], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
jmp 0x402745
lea ecx, [esp + 0x1e4]
mov dword [0x40a48c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
push 0x40a50c
lea ecx, [esp + 0x1e8]
mov byte [esp + 0x214], 4
call dword [sym.imp.MSVCP90.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__]
push str.update.txt
lea ecx, [esp + 0x1e8]
call dword [0x4070a4]
mov eax, dword [esp + 0x1e8]
cmp dword [esp + 0x1fc], edi
jae 0x4025d4
lea eax, [esp + 0x1e8]
push 1
push 0
call fcn.00401c60
add esp, 8
test al, al
jne 0x402665
mov eax, dword [esp + 0x1e8]
cmp dword [esp + 0x1fc], edi
jae 0x4025ff
lea eax, [esp + 0x1e8]
push eax
push str.cannt_find_file___s__n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], edi
jb 0x402634
mov eax, dword [eax + 4]
jmp 0x402637
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll__unlink]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1e4]
mov byte [esp + 0x210], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40254b
call fcn.004056f0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xb8]
mov bl, al
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], edi
jb 0x402688
mov eax, dword [eax + 4]
jmp 0x40268b
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll__unlink]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x40264b
lea edx, [esp + 0x1c8]
push edx
lea ecx, [esp + 0x140]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::str_void_]
cmp dword [eax + 0x18], edi
jb 0x4026c2
mov eax, dword [eax + 4]
jmp 0x4026c5
add eax, 4
call fcn.004011f0
lea ecx, [esp + 0x1c8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call fcn.00401300
mov byte [esp + 0x210], 2
lea ecx, [esp + 0x1e4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x210], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x13c]
mov byte [esp + 0x210], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x210], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
xor eax, eax
jmp 0x40275f
mov eax, dword [ebx]
push eax
push str._s_base_dir__autoupdate_urlservicereboot_cmd___installdown__n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x210], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
mov eax, 1
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.00405b7b
mov esp, ebp
pop ebp
ret