Function at 0x4202ba
Capabilities:
Terminate process

Disassembly:
sub esp, 0x48
mov eax, dword [0x4b1074]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
xor edx, edx
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
inc ebp
and dword [edi + 8], 0
lea ecx, [edi + 0x68]
mov dword [edi + 0x184], eax
mov eax, dword [esp + 0x5c]
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], eax
call fcn.0042006e
test eax, eax
js 0x420510
lea ecx, [edi + 0xdc]
call fcn.0042015b
test eax, eax
js 0x420510
mov edx, dword [edi + 0x24]
push 4
or edx, 0x8080
mov dword [edi + 0x24], edx
pop ecx
mov dword [edi + 0x1c], ecx
test ebx, ebx
je 0x420365
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x20], eax
mov ecx, dword [ebx + 0x20]
mov eax, ecx
shr eax, 0x17
xor eax, edx
mov dword [edi + 0x1c], ecx
and eax, ebp
xor eax, edx
mov dword [edi + 0x24], eax
test ecx, 0x4000
je 0x420355
or eax, ebp
mov dword [edi + 0x24], eax
test ecx, 0x100080
jne 0x420365
or eax, 0x2000
mov dword [edi + 0x24], eax
test cl, 1
je 0x42036e
push 3
jmp 0x420375
test cl, 2
je 0x42037d
push 2
pop eax
mov word [edi + 0xf4], ax
push dword [edi + 0x10]
call dword [0x48d3ec]
mov ebp, eax
test ebp, ebp
je 0x420510
push 0xd
call dword [0x48d090]
mov esi, dword [0x48d09c]
push eax
push ebp
call esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x420510
lea eax, [esp + 0x18]
push eax
push ebp
call dword [0x48d080]
push dword [esp + 0x14]
push ebp
call esi
mov eax, dword [esp + 0x2c]
mov esi, dword [0x48d088]
push 0x58
mov dword [0x4b3d34], eax
mov eax, dword [esp + 0x1c]
push ebp
mov dword [0x4b3d30], eax
call esi
push 0x5a
push ebp
mov dword [0x4b3d48], eax
call esi
push ebp
push dword [edi + 0x10]
mov dword [0x4b3d44], eax
call dword [0x48d3f0]
mov ecx, edi
call fcn.00420f3d
or dword [edi + 0x24], 0x20000
push 0x49e1cc
call dword [0x48d1a0]
mov dword [edi + 0x180], eax
test eax, eax
je 0x420527
push 0x49e1e8
push eax
call dword [0x48d310]
test eax, eax
je 0x420527
lea ecx, [esp + 0x10]
push ecx
push edi
push 0
call eax
test eax, eax
js 0x420510
mov eax, dword [esp + 0x10]
lea ebp, [edi + 0x18]
push ebp
push 0x49ad74
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
js 0x420510
test ebx, ebx
je 0x420487
cmp dword [ebx + 0x24], 0
je 0x420487
mov ecx, dword [ebp]
push dword [ebx + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
js 0x420510
mov eax, dword [ebx + 0x1c]
lea esi, [edi + 0x40]
mov dword [esi], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x14]
add eax, dword [ebx + 0x1c]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x10]
mov dword [edi + 0x4c], eax
mov ecx, dword [ebx + 0x14]
sub ecx, 0xa
call fcn.0041ffec
mov dword [edi + 0x60], eax
mov ecx, dword [ebx + 0x10]
sub ecx, 0xa
call fcn.00420001
mov ecx, dword [ebp]
mov dword [edi + 0x64], eax
push esi
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
js 0x420510
cmp dword [edi + 0x10], 0
je 0x4204fb
test dword [edi + 0x1c], 0x2000
jne 0x4204fb
push 0xfffffffffffffff0
push dword [edi + 0x10]
call dword [0x48d3b8]
and eax, 0xffcfffff
push eax
push 0xfffffffffffffff0
push dword [edi + 0x10]
call dword [0x48d3b4]
test dword [edi + 0x1c], 0x800
jne 0x42050b
mov ecx, edi
call fcn.00420fe4
xor eax, eax
inc eax
jmp 0x420512
xor eax, eax
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00452966
add esp, 0x48
ret 0x10
push 0
call fcn.0046a08d
int3