Function at 0x415d20
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45b6b1
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x45c]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [0x474f04], ebx
je 0x415f8b
mov eax, dword [esp + 0x46c]
cmp eax, 0x41
jne 0x415e09
mov eax, dword [0x473cfc]
mov edx, dword [eax + 0xc]
mov ecx, 0x473cfc
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 2
push 0x1d
push str._QTSvcStat__idx___lu__value___lu
lea edi, [esp + 0x24]
mov dword [esp + 0x470], ebx
call fcn.004073c0
mov esi, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0xc
push esi
call edi
lea eax, [esi - 0x10]
mov dword [esp + 0x464], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415dde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x474f04]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 2
push 0x1d
push 0x41
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._QTSvcStat__flush
call fcn.0040df40
mov edx, dword [esp + 0x14]
push edx
call edi
jmp 0x415e28
cmp eax, 0x40
jne 0x415e48
lea ecx, [esp + 0x14]
push ecx
mov ecx, str._InstallStat__flush
call fcn.0040df40
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415e48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x464080
lea ecx, [esp + 0x58]
push 0x200
push ecx
call fcn.004414db
add esp, 0xc
lea ecx, [esp + 0x38]
mov word [esp + 0x452], bx
call fcn.0042bd40
mov dword [esp + 0x464], 2
lea eax, [esp + 0x54]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415e93
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea esi, [esp + 0x24]
call fcn.00406f80
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x46c], 3
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x415ee1
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jae 0x415f00
lea edx, [esp + 0x3c]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x415f3f
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415f10
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
mov dword [esp + 0x464], 0xffffffff
cmp dword [esp + 0x50], esi
jb 0x415f5d
mov edx, dword [esp + 0x3c]
push edx
call fcn.004415cb
add esp, 4
mov ecx, dword [0x474f04]
mov eax, dword [ecx]
mov edx, dword [esp + 0x46c]
mov eax, dword [eax + 0x3c]
push ebx
push edx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call eax
mov eax, 1
jmp 0x415f8d
xor eax, eax
mov ecx, dword [esp + 0x45c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.004414cc
add esp, 0x458
ret