Function at 0x407170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4773b7
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x49d73c]
xor eax, esp
mov dword [esp + 0xc60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49d73c]
xor eax, esp
push eax
lea eax, [esp + 0xc78]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x660]
push eax
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x864]
push ecx
lea edx, [esp + 0xa70]
push edx
lea eax, [esp + 0x45c]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x66c]
push edx
call fcn.0044b3c6
push ebx
push ebx
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x270]
push edx
call fcn.0044b18b
add esp, 0x28
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402480
push str.images0409controlsupdatebar_Mask.BMP
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0xc8c], ebx
call fcn.00406f40
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esi + 0x88]
push edx
push eax
push ebx
mov byte [esp + 0xc9c], 1
call fcn.00404e90
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0xc80], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40727f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.images0409controlsupdatebar_n.jpg
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00406f40
mov eax, dword [eax]
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0x90]
push ecx
push eax
push ebx
mov byte [esp + 0xc9c], 2
mov dword [esp + 0x48], ecx
call fcn.00404e90
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0xc80], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4072de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], vtable.CBitmap.0
push 0x47e8f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0xc8c], 3
call fcn.00406f40
mov eax, dword [eax]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
push ecx
push eax
push ebx
mov byte [esp + 0xc9c], 4
call fcn.00404e90
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [esp + 0xc80], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407360
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ebx
push esi
sub esp, 0x10
mov eax, esp
xor edi, edi
mov dword [eax], edi
mov dword [eax + 4], ebx
lea ecx, [esi + 0xa0]
mov dword [eax + 8], ebp
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], ecx
mov dword [eax + 0xc], edx
call fcn.00402840
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x44]
push edx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x48]
call fcn.00402bd0
lea ecx, [esp + 0x24]
mov byte [esp + 0xc80], bl
mov dword [esp + 0x24], vtable.CBitmap.0
call fcn.00402f80
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0xc80], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4073f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc60]
xor ecx, esp
call fcn.0044a9bf
add esp, 0xc70
ret