Function at 0x412830
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea eax, [esi + 0x10]
push 0xfb9
mov dword [esp + 0x18], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x168], eax
call fcn.004114a0
cmp dword [esi + 0x17c], 0
mov byte [esi + 0x188], 0
mov dword [esi + 0x18c], 0xffffffff
jne 0x412b90
cmp dword [esi + 0x160], 0
je 0x412b90
mov eax, dword [esi + 0x168]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [esi + 0x16c], eax
mov dword [esi + 0x170], ecx
lea esp, [esp]
mov eax, dword [esi + 0x168]
mov ecx, dword [esi + 0x16c]
mov edi, dword [eax + 0x14]
mov eax, dword [eax]
test ecx, ecx
je 0x4128c9
cmp ecx, eax
je 0x4128ce
call fcn.00418b72
cmp dword [esi + 0x170], edi
je 0x412b83
cmp dword [esi + 0x160], 0
je 0x412b83
mov eax, dword [esi + 0x16c]
test eax, eax
jne 0x412900
call fcn.00418b72
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x412904
mov eax, dword [eax]
jmp 0x412906
xor eax, eax
mov edx, dword [esi + 0x170]
cmp edx, dword [eax + 0x14]
jne 0x412916
call fcn.00418b72
mov eax, dword [esi + 0x170]
add eax, 8
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00412740
mov ebx, eax
mov eax, dword [esi + 0x16c]
test eax, eax
jne 0x412944
call fcn.00418b72
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x412948
mov eax, dword [eax]
jmp 0x41294a
xor eax, eax
mov ecx, dword [esi + 0x170]
cmp ecx, dword [eax + 0x14]
jne 0x41295a
call fcn.00418b72
mov edx, dword [esi + 0x170]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x16c]
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], edx
test eax, eax
jne 0x412986
call fcn.00418b72
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x41298a
mov eax, dword [eax]
jmp 0x41298c
xor eax, eax
mov ecx, dword [esi + 0x170]
cmp ecx, dword [eax + 0x14]
jne 0x41299c
call fcn.00418b72
mov edx, dword [esi + 0x170]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x16c]
mov ebp, dword [ecx]
test eax, eax
jne 0x4129c3
call fcn.00418b72
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x4129c7
mov eax, dword [eax]
jmp 0x4129c9
xor eax, eax
mov edx, dword [esi + 0x170]
cmp edx, dword [eax + 0x14]
jne 0x4129d9
call fcn.00418b72
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x170]
mov edx, dword [ecx + 8]
push eax
mov eax, dword [edx]
push ebp
push eax
lea edi, [esi + 0x5c]
push str.Pjz_Run:__d__Code:__d__s_n
push edi
call fcn.0041861e
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebx, 4
jne 0x412a6e
mov eax, dword [esi + 0x18c]
cmp eax, 0xffffffff
je 0x412b37
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00411eb0
cmp dword [esp + 0x10], 0
mov ecx, dword [eax]
mov dword [esi + 0x174], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x178], edx
je 0x412a52
mov ecx, dword [eax]
mov dword [esi + 0x16c], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x170], edx
mov dword [esp + 0x10], 0
mov dword [esi + 0x18c], 0xffffffff
push 0x1f4
jmp 0x412b31
cmp ebx, 0xff
je 0x412b79
cmp ebx, 1
jne 0x412abc
cmp dword [esi + 0x16c], 0
jne 0x412a8d
call fcn.00418b72
mov eax, dword [esi + 0x170]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x16c]
mov dword [esi + 0x170], ecx
test eax, eax
je 0x412aaa
mov eax, dword [eax]
jmp 0x412aac
xor eax, eax
cmp ecx, dword [eax + 0x14]
jne 0x412b37
call fcn.00418b72
jmp 0x412b37
cmp ebx, 2
jne 0x412b37
cmp dword [esi + 0x16c], 0
jne 0x412acf
call fcn.00418b72
mov ecx, dword [esi + 0x170]
mov eax, dword [esi + 0x16c]
mov ecx, dword [ecx + 4]
mov dword [esi + 0x170], ecx
test eax, eax
je 0x412aec
mov eax, dword [eax]
jmp 0x412aee
xor eax, eax
cmp ecx, dword [eax + 0x14]
jne 0x412af8
call fcn.00418b72
cmp dword [esi + 0x16c], 0
jne 0x412b06
call fcn.00418b72
mov edx, dword [esi + 0x170]
mov eax, dword [esi + 0x16c]
mov ecx, dword [edx + 4]
mov dword [esi + 0x170], ecx
test eax, eax
je 0x412b23
mov eax, dword [eax]
jmp 0x412b25
xor eax, eax
cmp ecx, dword [eax + 0x14]
jne 0x412b2f
call fcn.00418b72
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x16c]
test eax, eax
jne 0x412b50
call fcn.00418b72
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x412b54
mov eax, dword [eax]
jmp 0x412b56
xor eax, eax
mov ecx, dword [esi + 0x170]
cmp ecx, dword [eax + 0x14]
jne 0x412b66
call fcn.00418b72
mov edx, dword [esi + 0x170]
mov eax, dword [edx]
mov dword [esi + 0x170], eax
jmp 0x4128b0
mov dword [esi + 0x160], 0
cmp dword [esi + 0x17c], 0
je 0x412883
push str.End_8xjjdcw
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x180]
mov dword [esi + 0x160], 0
cmp eax, 0xffffffff
je 0x412bb7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0xfba
mov ecx, esi
mov dword [esi + 0x180], 0xffffffff
call fcn.004114a0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret