Function at 0x496350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f4f7a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x4fc258
mov eax, dword [esi + 0x128]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ebx, ebx
push 0xffffffffffffffff
push eax
mov dword [esp + 0x38], 3
mov dword [esi + 0x13c], ebx
mov dword [esi + 0xb0], 1
call edi
mov ecx, dword [esi + 0xe0]
push 0xffffffffffffffff
push ecx
call edi
mov edi, dword [esi + 0x108]
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp edi, ebx
je 0x49647b
mov eax, dword [0x50d0e0]
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov byte [esp + 0x30], 4
cmp dword [edx - 8], ebx
jle 0x4963e5
push edi
lea ecx, [esp + 0x14]
call fcn.00402090
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jle 0x496421
mov ecx, dword [edi + 4]
add edi, 4
cmp ecx, ebx
je 0x496421
push eax
lea ecx, [esp + 0x1c]
mov word [esp + 0x1c], bx
call fcn.00406940
lea eax, [esp + 0x18]
push ebx
push eax
push str.Save
mov ecx, edi
mov byte [esp + 0x3c], 5
call fcn.00406990
lea ecx, [esp + 0x18]
push ecx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.00402160
mov edi, dword [esi + 0x108]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x496445
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [edi + 4], ebx
mov edi, dword [esi + 0x108]
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x496475
lea ecx, [edi + 4]
mov byte [esp + 0x30], 6
call fcn.0042ca10
mov ecx, edi
mov byte [esp + 0x30], 3
call fcn.00402160
push edi
call fcn.004de3a6
add esp, 4
mov dword [esi + 0x108], ebx
mov edi, dword [esi + 0xd0]
cmp edi, ebx
je 0x49652c
mov eax, dword [0x50d0e0]
mov dword [esp + 0x10], eax
mov ecx, dword [edi]
mov byte [esp + 0x30], 7
cmp dword [ecx - 8], ebx
jle 0x4964ac
push edi
lea ecx, [esp + 0x14]
call fcn.00402090
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
jle 0x4964e8
mov ecx, dword [edi + 4]
add edi, 4
cmp ecx, ebx
je 0x4964e8
push eax
lea ecx, [esp + 0x1c]
mov word [esp + 0x1c], bx
call fcn.00406940
lea edx, [esp + 0x18]
push ebx
push edx
push str.Save
mov ecx, edi
mov byte [esp + 0x3c], 8
call fcn.00406990
lea eax, [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.00402160
mov edi, dword [esi + 0xd0]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x49650c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 4], ebx
mov edi, dword [esi + 0xd0]
cmp edi, ebx
je 0x496526
mov ecx, edi
call fcn.00402ab0
push edi
call fcn.004de3a6
add esp, 4
mov dword [esi + 0xd0], ebx
mov eax, dword [esi + 0xc4]
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebx
je 0x49655e
mov edx, dword [eax + 4]
push edx
call ebp
cmp eax, ebx
je 0x49655e
mov edi, dword [esi + 0xc4]
add edi, 4
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x49655e
mov dword [edi], ebx
mov eax, dword [esi + 0xc8]
cmp eax, ebx
je 0x49658a
mov ecx, dword [eax + 4]
push ecx
call ebp
cmp eax, ebx
je 0x49658a
mov edi, dword [esi + 0xc8]
add edi, 4
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x49658a
mov dword [edi], ebx
mov eax, dword [esi + 0xcc]
cmp eax, ebx
je 0x4965b6
mov eax, dword [eax + 4]
push eax
call ebp
cmp eax, ebx
je 0x4965b6
mov edi, dword [esi + 0xcc]
add edi, 4
mov ecx, dword [edi]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x4965b6
mov dword [edi], ebx
mov eax, dword [esi + 0xd4]
cmp eax, ebx
je 0x4965e2
mov edx, dword [eax + 4]
push edx
call ebp
cmp eax, ebx
je 0x4965e2
mov edi, dword [esi + 0xd4]
add edi, 4
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x4965e2
mov dword [edi], ebx
mov eax, dword [esi + 0xd8]
cmp eax, ebx
je 0x49660e
mov ecx, dword [eax + 4]
push ecx
call ebp
cmp eax, ebx
je 0x49660e
mov edi, dword [esi + 0xd8]
add edi, 4
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
test eax, eax
je 0x49660e
mov dword [edi], ebx
mov edi, dword [esi + 0xc4]
cmp edi, ebx
je 0x49662e
mov ecx, edi
call fcn.004967c0
push edi
call fcn.004de3a6
add esp, 4
mov dword [esi + 0xc4], ebx
mov edi, dword [esi + 0xc8]
cmp edi, ebx
je 0x49664e
mov ecx, edi
call fcn.004967c0
push edi
call fcn.004de3a6
add esp, 4
mov dword [esi + 0xc8], ebx
mov edi, dword [esi + 0xcc]
cmp edi, ebx
je 0x49666e
mov ecx, edi
call fcn.004967c0
push edi
call fcn.004de3a6
add esp, 4
mov dword [esi + 0xcc], ebx
mov edi, dword [esi + 0xd4]
cmp edi, ebx
je 0x49668e
mov ecx, edi
call fcn.004967c0
push edi
call fcn.004de3a6
add esp, 4
mov dword [esi + 0xd4], ebx
mov edi, dword [esi + 0xd8]
cmp edi, ebx
je 0x4966ae
mov ecx, edi
call fcn.004967c0
push edi
call fcn.004de3a6
add esp, 4
mov dword [esi + 0xd8], ebx
mov eax, dword [esi + 0x128]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4966c7
push eax
call edi
mov dword [esi + 0x128], ebx
mov eax, dword [esi + 0xe0]
cmp eax, ebx
je 0x4966da
push eax
call edi
mov dword [esi + 0xe0], ebx
mov edi, dword [esi + 0x168]
cmp edi, ebx
je 0x4966fe
cmp dword [edi], ebx
je 0x4966ef
mov ecx, edi
call fcn.0048ad10
push edi
call fcn.004de3a6
add esp, 4
mov dword [esi + 0x168], ebx
mov eax, dword [esi + 0x164]
mov edx, dword [0x50d0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x496731
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x496731
mov eax, dword [esi + 0x164]
sub eax, 0xc
push eax
call fcn.004de3a6
add esp, 4
mov edx, dword [esi + 0x14c]
mov eax, dword [esi + 0x148]
lea edi, [esi + 0x144]
push edx
push eax
mov ecx, edi
mov byte [esp + 0x38], 1
call fcn.004be0e0
mov eax, dword [edi + 4]
push eax
call fcn.004de3a6
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov ecx, dword [esi + 0x120]
mov edx, dword [esi + 0x11c]
lea edi, [esi + 0x118]
add esp, 4
mov byte [esp + 0x30], bl
push ecx
push edx
mov ecx, edi
call fcn.004be0e0
mov eax, dword [edi + 4]
push eax
call fcn.004de3a6
add esp, 4
mov ecx, esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x30], 0xffffffff
call fcn.004d5380
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret