Function at 0x4146b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49f740
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea esi, [esp + 0x18]
call fcn.0040cb40
add esp, 4
mov dword [esp + 0x38], 0
mov eax, dword [eax]
sub eax, 0x10
call fcn.004033a0
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41472a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov dword [edi + 4], 5
call fcn.00415e00
xor esi, esi
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x414756
mov eax, dword [edi + 0x54]
cmp eax, esi
jne 0x414795
push edi
call fcn.00414360
mov dword [esp + 0x10], eax
cmp eax, esi
je 0x4147c6
add ebx, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4148c6
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x414810
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea eax, [esp + 0x1c]
push eax
push edi
mov byte [esp + 0x40], 3
call fcn.00414430
lea esi, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00419170
xor esi, esi
mov ecx, edi
call fcn.00416fa0
mov edi, eax
add ebx, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
cmp edi, esi
je 0x41486f
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4147fb
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x41489d
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x1c]
push ecx
push edi
mov byte [esp + 0x40], 4
call fcn.00414430
mov dword [esp + 0x10], eax
cmp eax, esi
je 0x4147b6
lea esi, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00419170
lea eax, [esp + 0x18]
call fcn.00401ce0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414888
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4148c1
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, 0xe
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret