Function at 0x4041d0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41966b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x421564]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x421564
mov dword [esp + 0x24], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov edx, dword [0x421564]
mov ecx, 0x421564
mov dword [esp + 0x30], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov edx, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 2
lea ebx, [esi + 0xc]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 4
lea edi, [esi + 0x14]
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x18], eax
mov edx, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 6
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 7
lea ebp, [esi + 0x20]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov edx, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 8
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], 9
test eax, eax
jne 0x40435e
mov eax, dword [esi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0x104
or eax, ecx
jge 0x40431f
push 0x104
mov ecx, esi
call fcn.004015c0
mov eax, dword [esi]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esi]
test eax, eax
je 0x404346
push eax
call fcn.0040e053
add esp, 4
test eax, eax
jl 0x4049e9
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4049e9
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
jmp 0x404374
push eax
call fcn.0040e053
mov edx, dword [esp + 0x3c]
add esp, 4
push eax
push edx
mov ecx, esi
call fcn.00401bb0
mov eax, dword [esi]
push eax
push 0x41ab9c
push 0x30
call fcn.00405820
mov edx, dword [0x421564]
add esp, 0xc
mov ecx, 0x421564
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [0x421564]
mov ecx, 0x421564
mov byte [esp + 0x30], 0xa
call dword [eax + 0xc]
lea edx, [eax + 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x200
or eax, ecx
mov byte [esp + 0x30], 0xb
jge 0x4043e1
push 0x200
lea ecx, [esp + 0x14]
call fcn.004015c0
mov edx, dword [esp + 0x10]
push 0x200
push 0x41a870
push edx
call fcn.0040e069
mov ecx, dword [esp + 0x1c]
add esp, 0xc
test ecx, ecx
jne 0x404400
xor eax, eax
jmp 0x404415
push ecx
call fcn.0040e053
add esp, 4
test eax, eax
jl 0x4049e9
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x4049e9
push ecx
push 0x41ab78
mov dword [ecx - 0xc], eax
push 0x30
mov word [ecx + eax*2], 0
call fcn.00405820
mov edx, dword [esp + 0x44]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x404463
push 0x104
lea ecx, [esp + 0x3c]
call fcn.004015c0
mov edx, dword [esp + 0x38]
push 0x104
push edx
call fcn.00406990
mov ecx, dword [esp + 0x40]
add esp, 8
test ecx, ecx
jne 0x40447d
xor eax, eax
jmp 0x404492
push ecx
call fcn.0040e053
add esp, 4
test eax, eax
jl 0x4049e9
mov ecx, dword [esp + 0x38]
cmp eax, dword [ecx - 8]
jg 0x4049e9
mov dword [ecx - 0xc], eax
mov word [ecx + eax*2], 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esi + 0x10]
call fcn.00403ca0
mov edx, dword [esp + 0x38]
push edx
push 0x41ab54
push 0x30
call fcn.00405820
push 0x41a7b0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00403be0
push 0x41ab50
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x54], 0xc
call fcn.00403be0
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x60], 0xd
call fcn.00403b30
push 0x41ab44
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x6c], 0xe
call fcn.00403be0
add esp, 0x3c
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x34], 0xf
call fcn.00403ca0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404549
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40456c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40458f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 4]
push eax
push 0x41ab24
push 0x30
call fcn.00405820
add esp, 0xc
push 0x41ab0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test byte [0x4209ac], 1
mov dword [esp + 0x20], eax
jne 0x404601
mov ecx, dword [0x4209ac]
push 0x41aaf4
or ecx, 1
push eax
mov dword [0x4209ac], ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4209a8], eax
mov eax, dword [esp + 0x20]
test byte [0x4209ac], 2
jne 0x40462a
mov ecx, dword [0x4209ac]
push 0x41aadc
or ecx, 2
push eax
mov dword [0x4209ac], ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4209a4], eax
push 0x41b588
call fcn.0040e053
add esp, 4
push eax
push 0x41b588
lea ecx, [esi + 0x24]
call fcn.00401bb0
mov eax, dword [0x4209a8]
test eax, eax
je 0x4046f3
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x41a5a8
call eax
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], eax
je 0x404677
push eax
call fcn.0040e053
add esp, 4
mov edx, dword [esp + 0x20]
push eax
push edx
mov ecx, ebx
call fcn.00401bb0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x41a598
call dword [0x4209a8]
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4046ad
push eax
call fcn.0040e053
add esp, 4
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esi + 0x24]
call fcn.00401bb0
push 0x41aad8
call fcn.0040e053
add esp, 4
push eax
push 0x41aad8
lea ecx, [esi + 0x24]
call fcn.00401b10
push 0x41a5f4
call fcn.0040e053
add esp, 4
push eax
push 0x41a5f4
lea ecx, [esi + 0x24]
call fcn.00401b10
jmp 0x404756
mov eax, dword [ebx]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0x104
or eax, ecx
jge 0x40471a
push 0x104
mov ecx, ebx
call fcn.004015c0
mov eax, dword [ebx]
push 1
push 0
push eax
push 0
call dword [0x4209a4]
mov eax, dword [ebx]
test eax, eax
je 0x404740
push eax
call fcn.0040e053
add esp, 4
test eax, eax
jl 0x4049e9
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x4049e9
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
mov word [edx + eax*2], 0
push 0x41aad8
call fcn.0040e053
add esp, 4
push eax
push 0x41aad8
mov ecx, ebx
call fcn.00401b10
push 0x41a608
call fcn.0040e053
add esp, 4
push eax
push 0x41a608
mov ecx, ebx
call fcn.00401b10
mov eax, dword [ebx]
push eax
push 0x41aaa4
push 0x30
call fcn.00405820
mov eax, dword [edi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x4047c3
push 0x104
mov ecx, edi
call fcn.004015c0
mov eax, dword [edi]
push 1
push 2
push eax
push 0
call dword [0x4209a4]
mov eax, dword [edi]
test eax, eax
je 0x4047e9
push eax
call fcn.0040e053
add esp, 4
test eax, eax
jl 0x4049e9
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x4049e9
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
push 0x41aad8
mov word [ecx + eax*2], 0
call fcn.0040e053
add esp, 4
push eax
push 0x41aad8
mov ecx, edi
call fcn.00401b10
push 0x41a5f4
call fcn.0040e053
add esp, 4
push eax
push 0x41a5f4
mov ecx, edi
call fcn.00401b10
lea ebx, [esi + 0x18]
push edi
mov ecx, ebx
call fcn.00403ca0
push 0x41aad8
call fcn.0040e053
add esp, 4
push eax
push 0x41aad8
mov ecx, ebx
call fcn.00401b10
push 0x41a608
call fcn.0040e053
add esp, 4
push eax
push 0x41a608
mov ecx, ebx
call fcn.00401b10
lea ebx, [esi + 0x1c]
push edi
mov ecx, ebx
call fcn.00403ca0
push 0x41aad8
call fcn.0040e053
add esp, 4
push eax
push 0x41aad8
mov ecx, ebx
call fcn.00401b10
push 0x41a5d8
call fcn.0040e053
add esp, 4
push eax
push 0x41a5d8
mov ecx, ebx
call fcn.00401b10
mov edx, dword [edi]
push edx
push 0x41aa7c
push 0x30
call fcn.00405820
mov eax, dword [ebp]
mov ebx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, ebx
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x4048eb
push 0x104
mov ecx, ebp
call fcn.004015c0
mov eax, dword [ebp]
push 1
push 0x1a
push eax
push 0
call dword [0x4209a4]
mov eax, dword [ebp]
test eax, eax
je 0x404913
push eax
call fcn.0040e053
add esp, 4
test eax, eax
jl 0x4049e9
mov ecx, dword [ebp]
cmp eax, dword [ecx - 8]
jg 0x4049e9
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp]
push 0x41a640
mov word [ecx + eax*2], 0
call fcn.0040e053
add esp, 4
push eax
push 0x41a640
mov ecx, ebp
call fcn.00401b10
push 0x41aad8
call fcn.0040e053
add esp, 4
push eax
push 0x41aad8
mov ecx, ebp
call fcn.00401b10
push 0x41a608
call fcn.0040e053
add esp, 4
push eax
push 0x41a608
mov ecx, ebp
call fcn.00401b10
mov edx, dword [ebp]
push edx
push 0x41aa50
push 0x30
call fcn.00405820
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x30], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x30], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push 0x80070057
call fcn.00401000
int3