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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x41504c]
and dword [ebp - 0x18], 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 - 0x24], 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 - 0x14], eax
jne 0x40b9c2
push 0x74
pop eax
cmp word [esi + 2], ax
jne 0x40b9c2
cmp word [esi + 4], ax
jne 0x40b9c2
cmp word [esi + 6], 0x70
jne 0x40b9c2
movzx eax, word [esi + 8]
push dword [0x4154e0]
mov dword [ebp - 0x10], eax
mov eax, dword [0x415190]
push esi
call eax
add eax, 6
xor cl, cl
mov dword [ebp - 0xc], eax
xor edi, edi
push 0x2f
movzx eax, word [eax]
mov edx, eax
mov dword [ebp - 0x1c], edx
pop edx
mov dword [ebp - 0x20], edx
cmp ax, dx
je 0x40b6b1
mov esi, dword [ebp - 8]
xor edx, edx
movzx ebx, ax
movzx eax, bx
cmp eax, 0x3a
jne 0x40b688
mov cl, 1
jmp 0x40b69b
test cl, cl
jne 0x40b695
mov ebx, dword [ebp - 0x14]
mov word [edx + ebx], ax
jmp 0x40b69b
mov word [esi], ax
add esi, 2
mov eax, dword [ebp - 0xc]
inc edi
lea edx, [edi + edi]
movzx eax, word [edx + eax]
mov ebx, eax
cmp ax, word [ebp - 0x20]
jne 0x40b67c
mov ebx, dword [ebp - 0x24]
push dword [ebp - 8]
mov edi, dword [0x415090]
call edi
push dword [ebp - 0x14]
mov esi, eax
call edi
add esi, eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + esi*2]
mov esi, dword [ebp - 8]
add eax, 2
mov dword [ebp - 0x24], 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 0x40b736
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 0x40b9c2
mov eax, dword [0x41512c]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0x413af0
call eax
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x40b8c4
mov eax, dword [0x415184]
xor ecx, ecx
push 1
push ecx
push 3
push ecx
push ecx
push edi
push dword [ebp - 0x14]
push esi
call eax
mov edx, eax
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x40b8bd
cmp word [ebp - 0x10], 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 - 0x24]
push dword [0x4152ac]
push edx
call ecx
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40b8b4
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 0x40b8aa
lea eax, [ebp - 0x164]
push eax
push 0x413b04
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
mov edi, dword [sym.imp.kernel32.dll_CreateWaitableTimerA]
push 0x413b10
push 1
push 0
call edi
push 0x413b20
mov esi, eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push 0xc90
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
call dword [sym.imp.kernel32.dll_LocalFree]
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x413b2c
push 1
push 0
call edi
push 0x413b3c
mov esi, eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
test esi, esi
je 0x40b865
push esi
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
jmp 0x40b875
push 0x413b48
push 0x413b54
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
push 3
pop esi
call dword [sym.imp.kernel32.dll_GetLastError]
sub esi, 1
jne 0x40b878
mov edi, dword [ebp - 0x10]
mov esi, 0xc350
jmp 0x40b898
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40b8aa
mov byte [eax + ebx], 0
mov eax, dword [0x415100]
lea ecx, [ebp - 0xc]
push ecx
push esi
push ebx
push edi
call eax
test eax, eax
jne 0x40b88d
push edi
call dword [0x41506c]
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [0x41506c]
push esi
call dword [0x41506c]
push 0x775
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
push 0x413b60
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x413b6c
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_ReleaseSemaphore]
push 0x413b78
push 0x413b84
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x2a4]
push eax
push 0x413b90
call dword [sym.imp.kernel32.dll_FindFirstFileA]
push eax
call dword [sym.imp.kernel32.dll_pd_3JD9_w_8]
push 0x413b9c
push 0
push 1
push 0
call dword [sym.imp.kernel32.dll____TEg_Td:kJ__FfFpIDL_]
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
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 - 0x10], ecx
test ecx, ecx
je 0x40b9a2
mov eax, dword [0x41504c]
lea edi, [ecx + ecx]
push edi
push 0x40
call eax
push dword [ebp - 0x10]
mov ecx, dword [0x41519c]
mov esi, dword [0x4150b0]
push eax
push ebx
mov dword [ebp - 0x18], eax
call ecx
inc eax
push eax
push ebx
push 0
push 0xfde9
call esi
mov esi, dword [ebp - 0x18]
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x40b9a5
mov esi, dword [ebp - 0x18]
push dword [ebp - 8]
call dword [0x4150cc]
push dword [ebp - 0x14]
call dword [0x4150cc]
push ebx
call dword [0x4150cc]
mov eax, esi
jmp 0x40b9c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret