Function at 0x40bd06
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41504c]
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 0xc350
push 0x40
mov esi, ecx
call eax
mov ebx, eax
mov eax, dword [0x41504c]
push 0x18
push 0x40
mov dword [ebp - 0x1c], ebx
call eax
push 0x208
mov dword [ebp - 8], eax
mov eax, dword [0x41504c]
push 0x40
call eax
cmp word [esi], 0x68
mov dword [ebp - 4], eax
jne 0x40c0c5
push 0x74
pop eax
cmp word [esi + 2], ax
jne 0x40c0c5
cmp word [esi + 4], ax
jne 0x40c0c5
cmp word [esi + 6], 0x70
jne 0x40c0c5
movzx eax, word [esi + 8]
push dword [0x4154e0]
mov dword [ebp - 0x20], eax
mov eax, dword [0x415190]
push esi
call eax
add eax, 6
xor cl, cl
mov dword [ebp - 0x10], eax
xor edi, edi
push 0x2f
movzx eax, word [eax]
mov edx, eax
mov dword [ebp - 0x14], edx
pop edx
mov dword [ebp - 0x18], edx
cmp ax, dx
je 0x40bde2
mov esi, dword [ebp - 8]
xor edx, edx
movzx ebx, ax
movzx eax, bx
cmp eax, 0x3a
jne 0x40bdb9
mov cl, 1
jmp 0x40bdcc
test cl, cl
jne 0x40bdc6
mov ebx, dword [ebp - 4]
mov word [edx + ebx], ax
jmp 0x40bdcc
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0x10]
inc edi
lea edx, [edi + edi]
movzx eax, word [edx + eax]
mov ebx, eax
cmp ax, word [ebp - 0x18]
jne 0x40bdad
mov ebx, dword [ebp - 0x1c]
push dword [ebp - 8]
mov edi, dword [0x415090]
call edi
push dword [ebp - 4]
mov esi, eax
call edi
add esi, eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + esi*2]
mov esi, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [0x415078]
push esi
call eax
push esi
mov edi, eax
call dword [0x4150cc]
mov eax, dword [0x4150e8]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push dword [ebp + 8]
push ecx
push 0xfde9
call eax
mov ecx, dword [0x41504c]
mov esi, eax
lea eax, [esi + 0x40]
push eax
push 0x40
call ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x40be67
mov eax, dword [0x4150e8]
xor edx, edx
push edx
push edx
push esi
push ecx
push 0xffffffffffffffff
push dword [ebp + 8]
push edx
push 0xfde9
call eax
test eax, eax
je 0x40c0c5
mov eax, dword [0x41512c]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push str.SouthSide
call eax
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40bfff
mov eax, dword [0x415184]
xor ecx, ecx
push 1
push ecx
push 3
push ecx
push ecx
push edi
push dword [ebp - 4]
push esi
call eax
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x40bff8
cmp word [ebp - 0x20], 0x73
mov eax, 0x400000
mov ecx, dword [0x4150bc]
mov edi, 0xc00000
push 1
cmove eax, edi
push eax
push dword [ebp + 0x10]
push 0
push 0
push dword [ebp - 0x1c]
push dword [0x4152ac]
push edx
call ecx
mov edi, eax
test edi, edi
je 0x40bfef
push dword [ebp - 8]
mov eax, dword [0x41519c]
mov esi, dword [0x415018]
call eax
mov ecx, dword [0x415090]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call ecx
push eax
push dword [ebp + 0xc]
push edi
call esi
test eax, eax
je 0x40bfe5
push str.ev_nognh48v
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push str.WTMR_vnl9906w
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push str.8288ju77
push str.x9t7pl51
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push str.reg43xkr8q0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.MTX5v7e3n7e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40bf96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40bfc1
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.regxx7di8ho
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.0rml8oc8
push str.09qhyvpo
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, 0xc350
jmp 0x40bfd3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40bfe5
mov byte [eax + ebx], 0
mov eax, dword [0x415100]
lea ecx, [ebp - 0x10]
push ecx
push esi
push ebx
push edi
call eax
test eax, eax
jne 0x40bfc8
push edi
call dword [0x41506c]
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [0x41506c]
push esi
call dword [0x41506c]
push str.WTMR_hb6utpuu
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.t7p6yb50x
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
push eax
push 0x1053
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41519c]
mov esi, dword [0x4150b0]
push 0
push 0
push ebx
call eax
inc eax
push eax
push ebx
push 0
push 0xfde9
call esi
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x40c0a5
mov eax, dword [0x41504c]
lea edi, [ecx + ecx]
push edi
push 0x40
call eax
push dword [ebp - 0x20]
mov ecx, dword [0x41519c]
mov esi, dword [0x4150b0]
push eax
push ebx
mov dword [ebp - 0xc], eax
call ecx
inc eax
push eax
push ebx
push 0
push 0xfde9
call esi
mov esi, dword [ebp - 0xc]
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x40c0a8
mov esi, dword [ebp - 0xc]
push dword [ebp - 8]
call dword [0x4150cc]
push dword [ebp - 4]
call dword [0x4150cc]
push ebx
call dword [0x4150cc]
mov eax, esi
jmp 0x40c0c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret