Function at 0x417e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443924
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x44f1a0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x44f1a0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [ecx + 0xc], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], eax
je 0x418118
mov ebx, 7
mov eax, 0x44617c
lea esi, [esp + 0x50]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
call fcn.00401633
mov dword [esp + 0xd0], edi
mov eax, str.2345SafeSpreadidKey
lea esi, [esp + 0x6c]
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], edi
mov word [esp + 0x70], di
call fcn.00401633
mov byte [esp + 0xd0], 1
mov eax, str.CheckUpgradeSection
lea esi, [esp + 0x34]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov word [esp + 0x38], di
call fcn.00401633
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x18]
mov eax, esi
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0xdc], 2
push ecx
mov ecx, dword [edx + 0xc]
call fcn.0041da40
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x417f52
mov eax, dword [esp + 0x38]
push eax
call fcn.0042bbfa
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov word [esp + 0x38], di
cmp dword [esp + 0x84], esi
jb 0x417f75
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0042bbfa
add esp, 4
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], edi
mov word [esp + 0x70], di
mov byte [esp + 0xd0], 6
cmp dword [esp + 0x68], esi
jb 0x417fa3
mov edx, dword [esp + 0x54]
push edx
call fcn.0042bbfa
add esp, 4
cmp dword [esp + 0xb8], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
je 0x417fd3
cmp dword [esp + 0xbc], esi
jb 0x418118
mov eax, dword [esp + 0xa8]
push eax
jmp 0x418110
mov eax, str.2345SafeSpreadidKey
lea esi, [esp + 0x88]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], di
call fcn.00401633
mov byte [esp + 0xd0], bl
mov eax, str.CheckUpgradeSection
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00401633
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push ecx
mov edx, esi
mov byte [esp + 0xd4], 8
mov ecx, dword [eax + 0xc]
push edx
lea ebx, [esp + 0x90]
call fcn.0041db90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x418057
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042bbfa
add esp, 4
xor ebx, ebx
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
jb 0x418083
mov edx, dword [esp + 0x8c]
push edx
call fcn.0042bbfa
add esp, 4
xor edi, edi
mov byte [esp + 0x14], bl
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0xd0], 9
call fcn.004144d0
test al, al
je 0x4180b3
lea esi, [esp + 0x14]
call fcn.0040a770
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0xc]
call fcn.0041df50
call fcn.004144d0
test al, al
je 0x4180ed
cmp byte [esp + 0x14], bl
je 0x4180ed
cmp edi, ebx
je 0x4180ed
push str.RevertToSelf
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
test eax, eax
setne al
cmp al, bl
je 0x4180ed
mov byte [esp + 0x14], bl
lea esi, [esp + 0x14]
mov byte [esp + 0xd0], 6
call fcn.0040a390
cmp dword [esp + 0xbc], 8
jb 0x418118
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0042bbfa
add esp, 4
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0042b9ba
mov esp, ebp
pop ebp
ret 4