Function at 0x405630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4776c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x48fd28]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x60], 1
call esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x68]
mov byte [esp + 0x5c], 3
and eax, 0xffff
mov dword [esp + 0x2c], ebx
cmp eax, 0x11
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
ja case.0x405696.0
jmp dword [eax*4 + 0x40599c]
mov edx, dword [esp + 0x70]
lea eax, [esp + 0xc]
and edx, 0xff
push edx
push 0x48d364
push eax
call fcn.0046d44d
add esp, 0xc
jmp 0x4058fd
movsx ecx, word [esp + 0x70]
push ecx
lea edx, [esp + 0x10]
push 0x48d364
push edx
call fcn.0046d44d
add esp, 0xc
jmp 0x4058fd
mov eax, dword [esp + 0x70]
jmp 0x4058da
fld dword [esp + 0x70]
sub esp, 8
lea edx, [esp + 0x14]
fstp qword [esp]
push 0x48d728
push edx
call fcn.0046d44d
add esp, 0x10
jmp 0x4058fd
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x48d728
push edx
call fcn.0046d44d
add esp, 0x10
jmp 0x4058fd
lea eax, [esp + 0x68]
lea ecx, [esp + 0x28]
push eax
call fcn.00427e71
push 0x400
lea ecx, [esp + 0x18]
push ebx
push ecx
lea ecx, [esp + 0x34]
call fcn.00427f0f
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 4
call fcn.00472186
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 3
call fcn.00472099
jmp 0x4058fd
lea edx, [esp + 0x68]
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x405785
push eax
call fcn.0043489a
mov edi, 8
cmp word [esp + 0x34], di
jne 0x4057d5
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
call fcn.00404a00
push 0xc
call fcn.00471df8
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x5c], 5
je 0x4057c8
push esi
mov ecx, eax
call fcn.00407680
mov byte [esp + 0x5c], 3
mov dword [esp + 0x10], eax
jmp 0x40583c
xor eax, eax
mov byte [esp + 0x5c], 3
mov dword [esp + 0x10], eax
jmp 0x40583c
lea ecx, [esp + 0x44]
push ecx
call esi
lea edx, [esp + 0x34]
mov byte [esp + 0x5c], 6
test edx, edx
lea eax, [esp + 0x34]
jne 0x4057f8
cmp word [esp + 0x44], di
lea eax, [esp + 0x44]
je 0x405810
push edi
push ebx
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
cmp eax, ebx
jge 0x405810
push eax
call fcn.0043489a
mov ecx, dword [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404920
lea edx, [esp + 0x44]
mov byte [esp + 0x5c], 3
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x405838
push eax
call fcn.0043489a
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40587f
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
cmp ecx, ebx
mov edi, eax
jne 0x405868
mov eax, dword [eax]
push eax
call fcn.004349bc
cmp eax, ebx
mov dword [esi], eax
jne 0x405868
cmp dword [edi], ebx
je 0x405868
push 0x8007000e
call fcn.0043489a
mov esi, dword [esi]
lea ecx, [esp + 0xc]
push esi
push 0x48d724
push ecx
call fcn.0046d44d
add esp, 0xc
jmp 0x4058fd
xor esi, esi
lea ecx, [esp + 0xc]
push esi
push 0x48d724
push ecx
call fcn.0046d44d
add esp, 0xc
jmp 0x4058fd
fld qword [esp + 0x70]
call fcn.0042967c
lea edx, [esp + 0x1c]
push str._A__B_d__Y
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.0046d473
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 7
call fcn.00472186
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 3
call fcn.00472099
jmp 0x4058fd
movsx eax, word [esp + 0x70]
push eax
lea ecx, [esp + 0x10]
push 0x48d364
push ecx
call fcn.0046d44d
add esp, 0xc
jmp 0x4058fd
push 0x49a880
lea ecx, [esp + 0x10]
call fcn.004721d6
mov edi, dword [esp + 0x64]
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.00471e2c
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x10]
mov byte [esp + 0x5c], 2
cmp esi, ebx
je 0x40595e
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40595a
cmp esi, ebx
je 0x40595a
mov eax, dword [esi]
cmp eax, ebx
je 0x405941
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x405951
push eax
call fcn.00471e21
add esp, 4
push esi
call fcn.00471e21
add esp, 4
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x405978
push eax
call fcn.0043489a
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c], bl
call fcn.00472099
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret