Function at 0x406e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4402a0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x45410c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x402380
push 0x401dc0
push 0x402330
push 0x4022e0
push 0x401b30
push 0x401e40
push 0x401e20
call fcn.0040b678
add esp, 0x24
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
push 0x10
xor eax, eax
mov dword [ebp - 0x48], 0
push str.Bootstrapper.exe
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00402ad0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x20], ecx
je 0x406f3f
mov eax, dword [ebp - 0x58]
mov edx, 7
mov dword [ecx + 0x10], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [ebp - 0x24], 0x18
mov word [ebp - 0x58], ax
jmp 0x406f4f
lea eax, [ebp - 0x58]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402620
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x406f8a
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406f80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070f2
push edx
push ecx
call fcn.0040e5be
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x40700b
push 0xa
push 0x7da
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40700b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40700b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40700b
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401680
test al, al
je 0x40700b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 4
jne 0x40700b
push dword [esi + 0x214]
lea eax, [esi + 0x218]
push ecx
mov ecx, dword [ecx]
push eax
call fcn.00401ec0
test al, al
je 0x40700b
mov bl, 1
jmp 0x40701a
cmp dword [esi + 4], 8
ja 0x407018
mov dword [esi + 4], 0x3f4
xor bl, bl
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x40702a
push eax
call fcn.0040b680
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00401450
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x40707e
mov ecx, dword [ebp - 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40705f
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070f7
push ecx
push edx
call fcn.0040e5be
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4070d4
mov edx, dword [ebp - 0x24]
push ecx
call fcn.00402800
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x28]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4070ca
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4070fc
push ecx
push esi
call fcn.0040e5be
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret
call fcn.0042901d
call fcn.0042901d
call fcn.0042901d
int3