Function at 0x46db40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
mov eax, dword [0x5ec3c8]
xor eax, esp
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x78]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x14], ecx
push edi
test esi, esi
je 0x46dbd8
test ecx, ecx
je 0x46dbd8
cmp word [esi + 0x40], 0
jne 0x46dd42
push 0x5f11e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp word [esi + 0x40], 0
jne 0x46dd33
mov eax, dword [esi + 0x30]
test eax, eax
je 0x46dc15
mov edi, dword [esi + 0x28]
lea ecx, [esp + 0x1c]
mov ebx, dword [esi + 8]
push ecx
push eax
push 0
mov dword [esp + 0x28], 0x30
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x46dbed
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x30]
push dword [0x5f4854]
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x46dbed
push 0x5f11e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0050a47b
add esp, 0x70
ret
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [esi], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [esp + 0x3c]
movups xmmword [esi + 0x20], xmm0
mov eax, dword [esi + 8]
mov dword [esi + 0x34], eax
mov dword [esi + 0x28], edi
mov dword [esi + 8], ebx
jmp 0x46dc2f
mov eax, dword [0x5f4858]
xor ecx, ecx
cmp dword [esi + 0x3c], ecx
push dword [esi + 0x38]
cmovne eax, ecx
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x1c], eax
mov eax, dword [0x5f4854]
and dword [esi + 4], 0xffffbfff
mov edi, dword [esi + 0x28]
mov dword [esi + 0x14], eax
test edi, edi
jne 0x46dc5c
push esi
push 0x5d05a8
lea edi, [esi + 0x42]
push 0x25
push edi
call sym.Installer.exe_swprintf_s
add esp, 0x10
mov dword [esi + 0x28], edi
movups xmm0, xmmword [esi]
lea eax, [esp + 0x4c]
push eax
movups xmmword [esp + 0x50], xmm0
push edi
movups xmm0, xmmword [esi + 0x10]
push dword [esi + 0x14]
movups xmmword [esp + 0x68], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [esp + 0x78], xmm0
call dword [sym.imp.USER32.dll_GetClassInfoExW]
mov word [esi + 0x40], ax
test ax, ax
jne 0x46dd33
push esi
call dword [sym.imp.USER32.dll_RegisterClassExW]
movzx ebx, ax
test bx, bx
je 0x46dd2f
mov ecx, dword [0x5f1208]
mov edx, dword [0x5f120c]
cmp ecx, edx
jne 0x46dd13
mov ebp, dword [0x5f1204]
lea eax, [esp + 0x14]
cmp eax, ebp
jb 0x46dcd8
lea eax, [edx*2]
add eax, ebp
lea edi, [esp + 0x14]
cmp edi, eax
jb 0x46dd64
test edx, edx
jne 0x46dce1
lea edi, [edx + 1]
jmp 0x46dcf0
lea edi, [ecx + ecx]
test edi, edi
js 0x46dd2f
cmp edi, 0x3fffffff
ja 0x46dd2f
push 2
push edi
push ebp
call fcn.0053894a
add esp, 0xc
test eax, eax
je 0x46dd2f
mov ecx, dword [0x5f1208]
mov dword [0x5f120c], edi
mov dword [0x5f1204], eax
jmp 0x46dd18
mov eax, dword [0x5f1204]
lea eax, [eax + ecx*2]
test eax, eax
je 0x46dd28
mov word [eax], bx
mov ecx, dword [0x5f1208]
inc ecx
mov dword [0x5f1208], ecx
mov word [esi + 0x40], bx
push 0x5f11e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x30], 0
je 0x46dd4d
mov eax, dword [esi + 0x34]
mov dword [ecx], eax
mov ax, word [esi + 0x40]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0050a47b
add esp, 0x70
ret
push 0x80004005
call fcn.00425d20
int3