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

Disassembly:
push 0xffffffffffffffff
push 0x3a31bc5
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x55c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x574]
mov dword fs:[0], eax
mov eax, dword [esp + 0x584]
mov dword [esp + 0x20], eax
call fcn.039340c0
test al, al
jne 0x39aa81d
xor ebx, ebx
push ebx
push str.sprof_load_plugins__hs_d_d_d_n
lea ecx, [esp + 0x24]
call fcn.039d9200
mov dword [esp + 0x57c], ebx
push ebx
call fcn.0393ea90
add esp, 4
lea ecx, [esp + 0x74]
call fcn.039efdc0
mov byte [esp + 0x57c], 1
mov eax, str._ProgramFilesDir_ThinstallPlugins
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x39aa630
push ebx
sub eax, edx
lea ecx, [esp + 0x78]
push ecx
sar eax, 1
push eax
push str._ProgramFilesDir_ThinstallPlugins
call fcn.039f6d90
mov edx, dword [esp + 0x84]
push edx
lea eax, [esp + 0x37c]
push 0x104
push eax
call fcn.03a0280c
add esp, 0x1c
push 0x3a45a40
lea ecx, [esp + 0x36c]
push ecx
call fcn.039f79d0
push 7
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x370]
push eax
call fcn.0397a350
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x39aa7ef
test byte [esp + 0x118], 0x10
jne 0x39aa7d3
lea ecx, [esp + 0x368]
push ecx
call fcn.039f7390
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x36c]
push eax
call fcn.039f79d0
mov eax, 1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x48], 0x3a3ac08
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], eax
mov byte [esp + 0x50], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x100000
call fcn.039d9be0
mov byte [esp + 0x57c], 3
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x374]
push ecx
call fcn.0394d0c0
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x39aa7c2
push str.thinstall_entry
push edi
call fcn.03948b40
mov ebp, eax
cmp ebp, ebx
je 0x39aa7c2
push 0x14
call fcn.0393d940
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov byte [esp + 0x57c], 4
cmp esi, ebx
je 0x39aa7a1
lea edx, [esp + 0x368]
push edx
mov dword [esi], vtable.ts_plugin.0
mov dword [esi + 4], edi
call fcn.03a023bb
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov byte [esi + 0x10], bl
jmp 0x39aa7a3
xor esi, esi
mov byte [esp + 0x57c], 3
lea eax, [esp + 0x14]
push eax
mov ecx, 0x3a795d8
mov dword [esp + 0x18], esi
call fcn.03949af0
mov esi, dword [esp + 0x18]
mov byte [esp + 0x57c], 1
lea ecx, [esp + 0x5c]
call fcn.03932d60
lea ecx, [esp + 0x118]
push ecx
push esi
call fcn.039781f0
test eax, eax
jne 0x39aa6a5
push esi
call fcn.039783b0
push 1
call fcn.0393ea90
add esp, 4
mov byte [esp + 0x57c], bl
lea ecx, [esp + 0x74]
call fcn.039ef660
mov dword [esp + 0x57c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.039d9270
mov ecx, dword [esp + 0x574]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x55c]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x56c
ret