Function at 0x4177d0
Capabilities:
Access peb ldr_data
Get common file path
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x44f014
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x46414c]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x268]
xor edi, edi
mov dword [esp + 0x260], edi
mov dword [esp + 0x38], edi
mov eax, dword [0x46ecec]
mov esi, ecx
mov ebx, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
mov dword [esp + 0x3c], ebp
call edx
add eax, 0x10
mov dword [ebp], eax
lea eax, [esi + 0x38]
mov dword [esp + 0x260], edi
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
lea edi, [esi + 0x18]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
call fcn.00417d70
mov ecx, dword [esp + 0x14]
mov eax, edi
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
test ecx, ecx
je 0x417888
cmp ecx, eax
je 0x41788d
call fcn.00424b46
cmp dword [esp + 0x18], edi
jne 0x417bf7
mov ebx, dword [ebx + 0x2c]
lea eax, [ebx - 1]
cmp eax, 5
ja case.default.0x4178a6
jmp dword [eax*4 + 0x417c30]
lea eax, [esi + 0x14]
mov edi, ebp
call fcn.004050a0
jmp 0x417a28
lea edi, [esp + 0x34]
mov ecx, esi
call fcn.00417430
mov edi, ebp
mov dword [esp + 0x260], 1
call fcn.004050a0
mov byte [esp + 0x260], 0
mov eax, dword [esp + 0x34]
jmp 0x417a0c
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417901
sub eax, edx
sar eax, 1
lea edx, [esp + 0x4c]
mov ebx, eax
push edx
mov eax, ebp
call fcn.004053c0
jmp 0x417a28
lea edi, [esp + 0x30]
call fcn.00417560
mov edi, ebp
mov dword [esp + 0x260], 2
call fcn.004050a0
mov byte [esp + 0x260], 0
mov eax, dword [esp + 0x30]
jmp 0x417a0c
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417966
jmp 0x41790c
lea edi, [esp + 0x24]
call fcn.004176a0
mov edi, ebp
mov dword [esp + 0x260], 3
call fcn.004050a0
mov byte [esp + 0x260], 0
mov eax, dword [esp + 0x24]
jmp 0x417a0c
lea edi, [esp + 0x14]
mov ecx, esi
call fcn.00417430
mov dword [esp + 0x260], 4
mov ecx, dword [eax]
mov esi, dword [ebp]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x417a00
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4179f5
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4179f5
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4179ed
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp], ebx
jmp 0x417a00
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, ebp
call fcn.004053c0
mov byte [esp + 0x260], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417a28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
mov eax, 1
lea ecx, [esp + 0x18]
call fcn.004151a0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, 1
jne 0x417a5c
test eax, eax
jge 0x417a4f
push 0x80070057
call fcn.00401960
movzx eax, word [ecx]
cmp ax, 0x5c
jne 0x417a5c
xor bl, bl
jmp 0x417a5e
mov bl, 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417a7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x417a8f
push 1
push 0x45b7e0
push ebp
call fcn.004016d0
mov esi, dword [ebp]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
mov dword [esp + 0x18], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x417ac0
cmp eax, dword [esi]
jne 0x417ac0
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x417afc
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x417ad9
call fcn.00405f00
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004240cc
add esp, 0x10
mov ecx, dword [esp + 0x24]
add edi, 0x10
push ecx
lea esi, [esp + 0x2c]
mov dword [ebx], edi
call fcn.004187f0
add esp, 8
mov dword [esp + 0x260], 5
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x417b4d
cmp eax, dword [esi]
jne 0x417b4d
mov edi, esi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x417b89
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x417b66
call fcn.00405f00
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004240cc
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
lea ebx, [esp + 0x48]
mov byte [esp + 0x268], 6
call fcn.00417c70
lea eax, [esi - 0x10]
mov byte [esp + 0x260], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417bcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x260], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417bf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebp
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042404d
add esp, 0x250
ret 4