Function at 0x46c2f0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568559
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x28], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.00499e90
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0x90]
call fcn.00412150
push eax
call fcn.00529140
add esp, 4
push eax
call fcn.0046c940
add esp, 4
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
push edx
call fcn.004dea4c
add esp, 4
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x90]
call fcn.00412150
push eax
call fcn.00529140
add esp, 4
push eax
lea ecx, [ebp - 0x90]
call fcn.00412150
push eax
call fcn.0046bb40
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
push ecx
lea edx, [ebp - 0x4c]
push edx
call fcn.005289e0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
push ecx
call fcn.004dea57
add esp, 4
push 0
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp - 0xe0]
add ecx, 8
call fcn.00415f60
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00499e90
add esp, 8
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xe8]
call fcn.00412150
push eax
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebp - 0xe0]
call fcn.0046c950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00412130
push 1
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0xe0]
add ecx, 8
call fcn.00415f60
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00499e90
add esp, 8
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf0]
call fcn.00412150
push eax
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp - 0xe0]
call fcn.0046c950
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00412130
push 0x40
push 0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.005281f0
add esp, 0xc
push 8
push 0x581308
lea edx, [ebp - 0x8c]
push edx
call fcn.005289e0
add esp, 0xc
mov byte [ebp - 0x84], 3
mov eax, 0x18
mov word [ebp - 0x80], ax
mov ecx, 0x18
mov word [ebp - 0x7e], cx
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov ecx, dword [ebp - 0xe0]
add ecx, 4
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
lea esi, [eax + esi*2 + 0x40]
mov ecx, dword [ebp - 0xe0]
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esi + eax*2]
mov word [ebp - 0x7c], dx
mov eax, 0x18
mov word [ebp - 0x78], ax
mov ecx, 0x18
mov word [ebp - 0x76], cx
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov ecx, dword [ebp - 0xe0]
add ecx, 4
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
lea esi, [eax + esi*2 + 0x40]
mov ecx, dword [ebp - 0xe0]
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esi + eax*2 + 0x18]
mov word [ebp - 0x74], dx
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov word [ebp - 0x70], ax
mov ax, word [ebp - 0x70]
mov word [ebp - 0x6e], ax
mov ecx, 0x40
mov word [ebp - 0x6c], cx
mov ecx, dword [ebp - 0xe0]
add ecx, 4
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov word [ebp - 0x68], ax
mov dx, word [ebp - 0x68]
mov word [ebp - 0x66], dx
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 0x40]
mov word [ebp - 0x64], ax
mov ecx, dword [ebp - 0xe0]
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov word [ebp - 0x60], ax
mov cx, word [ebp - 0x60]
mov word [ebp - 0x5e], cx
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov ecx, dword [ebp - 0xe0]
add ecx, 4
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
lea edx, [eax + esi*2 + 0x40]
mov word [ebp - 0x5c], dx
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov ecx, dword [ebp - 0xe0]
add ecx, 4
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
lea esi, [eax + esi*2 + 0x40]
mov ecx, dword [ebp - 0xe0]
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 0x30]
mov word [ebp - 0x54], ax
mov ecx, 0x8201
mov word [ebp - 0x50], cx
movzx edx, word [ebp - 0x54]
push edx
call fcn.004dea4c
add esp, 4
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x44], eax
push 0x40
lea ecx, [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.005289e0
add esp, 0xc
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov ecx, dword [ebp - 0xe0]
add ecx, 0xc
call fcn.00415f60
push eax
lea ecx, [ebp - 0xc4]
call fcn.00435ea0
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf4]
call fcn.0046ec40
push eax
movsx eax, word [ebp - 0x6c]
add eax, dword [ebp - 0x44]
push eax
call fcn.005289e0
add esp, 0xc
lea ecx, [ebp - 0xc4]
call fcn.00435f40
mov ecx, dword [ebp - 0xe0]
add ecx, 4
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov ecx, dword [ebp - 0xe0]
add ecx, 4
call fcn.00415f60
push eax
lea ecx, [ebp - 0xc8]
call fcn.00435ea0
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
call fcn.0046ec40
push eax
movsx ecx, word [ebp - 0x64]
add ecx, dword [ebp - 0x44]
push ecx
call fcn.005289e0
add esp, 0xc
lea ecx, [ebp - 0xc8]
call fcn.00435f40
mov ecx, dword [ebp - 0xe0]
call fcn.00415f60
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
mov ecx, dword [ebp - 0xe0]
call fcn.00415f60
push eax
lea ecx, [ebp - 0xcc]
call fcn.00435ea0
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
call fcn.0046ec40
push eax
movsx edx, word [ebp - 0x5c]
add edx, dword [ebp - 0x44]
push edx
call fcn.005289e0
add esp, 0xc
lea ecx, [ebp - 0xcc]
call fcn.00435f40
push 0x18
lea eax, [ebp - 0x40]
push eax
movsx ecx, word [ebp - 0x7c]
add ecx, dword [ebp - 0x44]
push ecx
call fcn.005289e0
add esp, 0xc
push 0x18
lea edx, [ebp - 0xa8]
push edx
movsx eax, word [ebp - 0x74]
add eax, dword [ebp - 0x44]
push eax
call fcn.005289e0
add esp, 0xc
movzx ecx, word [ebp - 0x54]
mov dword [ebp - 0x18], ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.0046ba40
add esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 1
push eax
call fcn.004dea4c
add esp, 4
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x20], ecx
push 2
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0046b740
add esp, 0x14
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
mov byte [eax], 0
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00499f80
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.004dea57
add esp, 4
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0xd8], edx
mov eax, dword [ebp - 0xd8]
push eax
call fcn.004dea57
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00415d80
mov edx, dword [ebp - 0xdc]
or edx, 1
mov dword [ebp - 0xdc], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00415e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00412130
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret 8