Function at 0x404aa0
Capabilities:
Access peb ldr_data
Get file attributes
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x47c0a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ebp, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0xb4], ebx
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xb4], 1
mov byte [esp + 0x13], bl
mov dword [esp + 0x28], ebx
call fcn.004246b0
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xb8], 2
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, ebx
jge 0x404b92
lea ecx, [esp + 0x30]
mov byte [esp + 0xb4], 1
call fcn.004246d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xb4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xb4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404b8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x405059
mov edx, dword [ebp + 0x1c]
mov esi, dword [esp + 0xbc]
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
push 0xe0
push edx
push esi
call dword [eax + 0x10]
cmp eax, ebx
jl 0x404fd9
mov eax, dword [esp + 0xc4]
push eax
mov ecx, ebp
call fcn.0045b042
mov ecx, dword [ebp + 0xb8]
mov edi, eax
mov eax, dword [esp + 0xc4]
cmp eax, ecx
mov dword [esp + 0x2c], edi
je 0x404be5
cmp edi, ebx
je 0x404c52
cmp dword [edi + 0x18], 0xffffffff
je 0x404c3f
cmp eax, ebx
je 0x404bf7
mov ecx, dword [ebp + 0x1c]
push eax
push 4
push 0x110a
push ecx
jmp 0x404c02
mov edx, dword [ebp + 0x1c]
push ebx
push ebx
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, ebx
je 0x404c38
mov edi, edi
push esi
mov ecx, ebp
call fcn.0045b042
cmp eax, ebx
je 0x404c20
mov byte [eax + 0x28], 0
mov eax, dword [ebp + 0x1c]
push esi
push 1
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, ebx
jne 0x404c10
mov esi, dword [esp + 0xbc]
cmp edi, ebx
je 0x404c52
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x1c], ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x1c]
push edx
mov edi, 1
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x404fad
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
push esi
lea ecx, [esp + 0x40]
call fcn.00424e20
test eax, eax
je 0x404fd9
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x8000
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.00424e20
test eax, eax
je 0x404fd9
mov ecx, dword [esi]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push esi
mov dword [esp + 0x48], 0xa0000000
call dword [ecx + 0x24]
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x404f7d
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
push eax
call fcn.00401570
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00404780
cmp eax, ebx
jne 0x404f76
mov eax, dword [esp + 0x38]
test eax, eax
mov byte [esp + 0x13], 1
jns 0x404d20
mov byte [esp + 0x12], 1
mov eax, dword [ebp + 0xe8]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov al, byte [esp + 0x12]
test al, al
mov dword [esp + 0x50], 0x27
je 0x404d4a
mov dword [esp + 0x70], edi
mov dword [esp + 0x50], 0x67
push 0x4c0
call fcn.0044a731
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x404fd9
mov eax, dword [esp + 0x1c]
cmp dword [eax - 4], edi
jle 0x404d7b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401300
mov eax, dword [esp + 0x1c]
push eax
lea eax, [esi + 0x2b0]
push eax
call fcn.0044a5c9
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 4]
add esp, 8
cmp ecx, edi
jle 0x404da7
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401300
mov eax, dword [esp + 0x14]
push eax
lea edx, [esi + 0xa8]
push edx
call fcn.0044a5c9
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 4]
mov edx, edi
sub edx, eax
mov eax, dword [ecx - 8]
sub eax, 0xa
add esp, 8
or eax, edx
jge 0x404ddb
push 0xa
lea ecx, [esp + 0x18]
call fcn.00401520
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
mov dword [esp + 0x60], ecx
jne 0x404de7
xor eax, eax
jmp 0x404dfc
push ecx
call fcn.00449da9
add esp, 4
cmp eax, ebx
jl 0x405074
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x405074
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
mov word [ecx + eax*2], bx
mov dword [esp + 0x64], 0x104
mov dword [esp + 0x28], ebx
call fcn.00476002
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x44], esp
mov ebx, esp
push eax
call fcn.00401570
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [ebx], eax
call fcn.00410470
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebx
je 0x404e89
or dword [esp + 0x50], 8
mov eax, dword [ebp + 0xdc]
push eax
push eax
mov eax, dword [ebp + 0x9c]
push eax
mov dword [esp + 0x68], 0xf00
call dword [sym.imp.COMCTL32.dll_ImageList_SetOverlayImage]
mov ecx, dword [ebp + 0xdc]
shl ecx, 8
mov dword [esp + 0x58], ecx
mov byte [esi + 0x29], 1
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0xc0]
push edx
push edi
lea ecx, [esp + 0x38]
call fcn.00424910
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.004246f0
mov dword [esi + 4], eax
mov eax, dword [esp + 0xbc]
mov dword [esi], eax
mov edx, dword [eax]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.00424910
mov dword [esi + 8], eax
or eax, 0xffffffff
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x1c], eax
test dword [esp + 0x38], 0x20000000
je 0x404f1c
mov al, byte [esp + 0x12]
test al, al
mov byte [esi + 0xc], 1
je 0x404f0b
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x404f2b
inc dword [eax + 0x14]
jmp 0x404f2b
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x1c], ebx
jmp 0x404f2b
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esi + 0xc], 0
je 0x404f2b
inc dword [eax + 0x18]
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x78]
push edx
mov dword [esp + 0x78], esi
push ebx
mov ecx, 0xa
lea esi, [esp + 0x58]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xcc]
push 0x1132
push eax
mov dword [esp + 0x8c], 0xffff0001
mov dword [esp + 0x88], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, 1
xor ebx, ebx
mov esi, dword [esp + 0xbc]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x404c74
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x44]
push ecx
push ebx
push 0x1115
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0x404000
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x404fe7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x404ff5
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0x30]
mov byte [esp + 0xb4], 1
call fcn.004246d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40502c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xb4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405055
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa8
ret 0xc
push 0x80070057
call fcn.004010a0
int3