Function at 0x476180
Capabilities:
Create process on windows
Get process heap flags
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push esi
push edi
lea edi, [ebp - 0x430]
mov ecx, 0x10c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4f3280]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0x4f82bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, esp
call fcn.004c39d6
cmp dword [0x4f865c], 0
je 0x4761cb
xor eax, eax
jmp 0x4764cd
mov dword [0x4f865c], 1
mov dword [ebp - 8], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x4f8658]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x20], ecx
mov edx, dword [0x4f8658]
mov eax, dword [ebp + 8]
mov dword [edx + 0x34c], eax
mov ecx, dword [ebp + 8]
mov esi, dword [ecx]
mov edi, dword [0x4f8658]
add edi, 0x30
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 4]
mov edi, dword [0x4f8658]
add edi, 0x80
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4f8658]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x5f4], ecx
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.004c39d6
mov edx, dword [0x4f8658]
mov dword [edx + 0x18], eax
mov word [ebp - 0x214], 0
push 0x206
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.004a1d00
add esp, 0xc
mov word [ebp - 0x3ac], 0
push 0x18e
push 0
lea ecx, [ebp - 0x3aa]
push ecx
call fcn.004a1d00
add esp, 0xc
mov dword [ebp - 0x3c0], 0xc
mov dword [ebp - 0x3bc], 0
mov dword [ebp - 0x3b8], 1
mov esi, esp
push 0
push 0
push 1
lea edx, [ebp - 0x3c0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x3c8], eax
mov dword [ebp - 0x410], 0x44
push 0x40
push 0
lea eax, [ebp - 0x40c]
push eax
call fcn.004a1d00
add esp, 0xc
mov dword [ebp - 0x428], 0
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x3e4], 1
mov word [ebp - 0x3e0], 1
mov esi, esp
push 0
lea edx, [ebp - 0x214]
push edx
push 0x104
push 0
push 0x4d6654
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp esi, esp
call fcn.004c39d6
mov dword [ebp - 0x430], eax
cmp dword [0x4f8660], 0
je 0x476393
mov esi, esp
call dword [0x4f8660]
cmp esi, esp
call fcn.004c39d6
cmp dword [ebp - 0x430], 0
je 0x476479
cmp dword [ebp - 0x3c8], 0
je 0x476479
movzx eax, word [ebp - 0x214]
test eax, eax
je 0x476479
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.004c39d6
push eax
mov ecx, dword [0x4f8658]
push ecx
mov edx, dword [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x3c8]
push eax
push str.bugreport__buginfo:_p:_p:_p:_lu
push 0xc8
lea ecx, [ebp - 0x3ac]
push ecx
call fcn.004a54fd
add esp, 0x1c
mov esi, esp
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x3ac]
push ecx
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.004c39d6
test eax, eax
je 0x476479
mov esi, esp
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
push 0xffffffffffffffff
mov edx, dword [ebp - 0x3c8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
mov eax, dword [ebp - 0x3c8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004c39d6
cmp dword [0x4f8664], 0
je 0x4764a7
mov esi, esp
call dword [0x4f8664]
cmp esi, esp
call fcn.004c39d6
mov esi, esp
push 0x1234
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.004c39d6
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.004c39d6
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4764fc]
call fcn.004c39f9
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1723
add esp, 0x430
cmp ebp, esp
call fcn.004c39d6
mov esp, ebp
pop ebp
ret