Function at 0x403cde
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x38]
mov dword [edx], 0xfaaf3aab
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 0x40
cmp dword [ebp - 0x44], 0
jne 0x403d6a
push 4
push 0x1000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x8002
push 0x3e8
mov ecx, dword [ebp - 0x44]
add ecx, 0x4100
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x403d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x20]
push edx
push 0x1000
mov eax, dword [0x44c138]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc4], 0
je 0x403dca
mov eax, dword [ebp - 4]
mov dword [eax + 0x214], 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x228]
add edx, 0x13
mov eax, dword [ebp - 4]
mov dword [eax + 0x228], edx
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc4], 0
je 0x4040b2
cmp dword [ebp - 0x18], 0x57
jne 0x4040b2
mov edx, dword [ebp - 4]
cmp dword [edx + 0x214], 8
jne 0x403e13
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x228]
mov dword [ebp - 0x48], ecx
jmp 0x403e20
mov edx, dword [ebp - 4]
mov dword [edx + 0x228], 0
push 0x140
push 0
lea eax, [ebp - 0x188]
push eax
call fcn.00407560
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x244], edx
mov eax, dword [0x44c138]
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ecx + 0x1e0], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1e0], 0
jbe 0x404091
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x214], 8
jne 0x404091
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x198], 4
mov dword [ebp - 0x1a8], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x14], 0x434
push 0
push 0
push 3
push 0
push 0xfffff001
push 2
push 0x44c148
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a4], 0
cmp dword [ebp - 0x14], 0
je 0x403eeb
push 0x8e032222
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 4
mov edx, dword [ebp - 4]
add edx, 0x130
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00407220
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x194], 0x7b
mov ecx, dword [ebp - 0x24]
add ecx, 0xf4393
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
cmp edx, dword [0x44c138]
jae 0x40408f
cmp dword [ebp - 0x194], 0x7b
jne 0x40408f
mov dword [ebp - 0x1ac], 0
jmp 0x403f6c
mov eax, dword [ebp - 0x1ac]
add eax, 1
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x1ac], 4
jae 0x403fe2
mov edx, dword [ebp - 0x20]
cmp edx, dword [0x44c138]
jae 0x403fe2
mov eax, dword [ebp - 0x1ac]
mov cl, byte [ebp + eax - 0x24]
mov byte [ebp - 0x1b4], cl
mov al, byte [ebp - 0x1b4]
push eax
xor al, al
pop bx
mov byte [ebp - 0x19c], bl
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x20]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x1b4]
and ecx, 0xff
xor eax, ecx
mov byte [ebp - 0x1b0], al
push 1
lea edx, [ebp - 0x1b0]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc4]
add ecx, dword [ebp - 0x20]
push ecx
call fcn.00407220
add esp, 0xc
jmp 0x403f54
cmp dword [ebp - 0x20], 0
jbe 0x404083
mov dword [ebp - 0x1ac], 0
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x1ac]
mov al, byte [edx + 0x1b4]
mov byte [ebp - 0x1b8], al
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x1bc]
mov al, byte [edx]
mov byte [ebp - 0x1b0], al
mov ah, byte [ebp - 0x1b0]
mov al, byte [ebp - 0x1b8]
xor ah, al
mov byte [ebp - 0x1b0], ah
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc4]
mov eax, dword [ebp - 0x20]
mov cl, byte [ebp - 0x1b0]
mov byte [edx + eax], cl
mov edx, dword [ebp - 0x1ac]
add edx, 1
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1ac]
cmp ecx, dword [ebp - 0x198]
jae 0x404083
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18c]
jb 0x403ff6
mov dword [ebp - 0x40], 1
jmp 0x403f2c
jmp 0x40409a
mov eax, dword [ebp - 4]
push eax
call fcn.0040148a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0xf0], ecx
cmp dword [ebp - 0x40], 0
jne 0x4040bf
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret