Function at 0x404c44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1ff8
call fcn.004321a0
push esi
push edi
mov ecx, 0xe
mov esi, str.AlertNotifyFailSafeOperator
lea edi, [ebp - 0xc48]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x44aa0c]
mov word [ebp - 0x408], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x406]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44aa14]
mov word [ebp - 0x810], cx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44aa1c]
mov word [ebp - 0x1ff0], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1fee]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44aa24]
mov word [ebp - 0xc10], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xc0e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44aa2c]
mov word [ebp - 0x1bec], cx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x1bea]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44aa34]
mov word [ebp - 0x17ec], dx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x17ea]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1bf0], 0
mov dword [ebp - 0x1ff4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0xfec], 0
mov dword [ebp - 0x40c], 0
mov dword [ebp - 4], 0
push 0x200
lea eax, [ebp - 0xc10]
push eax
push 7
mov ecx, dword [0x44b81c]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea ecx, [ebp - 0xc10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, dword [0x44ce3c]
and eax, 1
test eax, eax
je 0x404e38
xor ecx, ecx
mov cx, word [0x44cc3c]
test ecx, ecx
je 0x404e38
mov edx, dword [ebp + 0x14]
add edx, 4
push edx
push 0x44ca3c
push 0xd1
push 0
push 3
call fcn.0041bfab
add esp, 0x14
lea eax, [ebp - 0xfe8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405d63
add esp, 8
test eax, eax
je 0x404e38
mov edx, dword [ebp + 8]
push edx
push 1
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
lea ecx, [ebp - 0xfe4]
push ecx
push 0xc0000132
mov edx, dword [ebp - 0xfe8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x44cc3c
push 1
call fcn.0041b408
add esp, 0x2c
test eax, eax
je 0x404e38
mov dword [ebp - 0x1bf0], 1
mov edx, dword [0x44ce3c]
and edx, 2
test edx, edx
je 0x404f79
xor eax, eax
mov ax, word [0x44cb3c]
test eax, eax
je 0x404f79
mov ecx, dword [ebp + 0x14]
add ecx, 4
push ecx
push 0x44ca3c
push 0xd2
push 0
push 3
call fcn.0041bfab
add esp, 0x14
push 0x800
lea edx, [ebp - 0x17ec]
push edx
push 0x44cb3c
push 0x43abb8
push 0x44ce40
call fcn.0042fc50
add esp, 0x14
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x800
lea ecx, [ebp - 0x17ec]
push ecx
push 0x44cb3c
push 0x43abc4
push 0x44cf40
call fcn.0042fc50
add esp, 0x14
push eax
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push 0x800
lea eax, [ebp - 0x17ec]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43abd0
push 0x44d040
call fcn.0042fc50
add esp, 0x14
push eax
lea edx, [ebp - 0x1ff0]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0xfe8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405d63
add esp, 8
test eax, eax
je 0x404f79
mov edx, dword [ebp + 8]
push edx
push 1
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
lea ecx, [ebp - 0xfe4]
push ecx
push 0xc0000133
mov edx, dword [ebp - 0xfe8]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1ff0]
push ecx
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x408]
push eax
push 2
call fcn.0041b408
add esp, 0x2c
test eax, eax
je 0x404f79
mov dword [ebp - 0x1ff4], 1
cmp dword [0x44b08c], 0
jne 0x40518e
mov ecx, dword [0x44ce3c]
and ecx, 4
test ecx, ecx
je 0x40518e
xor edx, edx
mov dx, word [0x44cd3c]
test edx, edx
je 0x40518e
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
push 0x44ca3c
push 0xd3
push 0
push 3
call fcn.0041bfab
add esp, 0x14
push 0x86e
lea ecx, [ebp - 0xc48]
push ecx
push 8
call fcn.00420df3
add esp, 0xc
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x40518e
push 0x44cd3c
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40504b
push 0x870
lea edx, [ebp - 0xc48]
push edx
mov eax, dword [ebp - 4]
lea ecx, [eax + eax + 2]
push ecx
call fcn.00420df3
add esp, 0xc
mov edx, dword [ebp - 0x410]
mov dword [edx], eax
mov eax, dword [ebp - 0x410]
cmp dword [eax], 0
je 0x40504b
push 0x44cd3c
mov ecx, dword [ebp - 0x410]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [esi + eax + 2]
cmp edx, 0x400
jae 0x405097
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43abdc
lea edx, [ebp - 0x17ec]
push edx
mov eax, dword [0x44df4c]
call dword [eax + 0x4cc]
add esp, 0x10
jmp 0x4050ab
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x17ec]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x17ec]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40510f
push 0x87f
lea ecx, [ebp - 0xc48]
push ecx
mov edx, dword [ebp - 4]
lea eax, [edx + edx + 2]
push eax
call fcn.00420df3
add esp, 0xc
mov ecx, dword [ebp - 0x410]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x410]
cmp dword [edx + 4], 0
je 0x40510f
lea eax, [ebp - 0x17ec]
push eax
mov ecx, dword [ebp - 0x410]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, dword [ebp - 0x410]
push eax
push 0
push 0x41c90d
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
mov dword [ebp - 8], 1
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x1e4], 0x37b9
je 0x40518e
lea edx, [ebp - 0xfe8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405d63
add esp, 8
test eax, eax
je 0x40518e
push 0
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0xfec]
push edx
call fcn.004219c0
add esp, 0xc
push 4
mov eax, dword [ebp - 0x40c]
push eax
mov ecx, dword [ebp - 0xfec]
push ecx
mov edx, dword [ebp - 0xfe8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004089cb
add esp, 0x14
cmp dword [ebp - 0x1bf0], 0
jne 0x4051c9
cmp dword [ebp - 0x1ff4], 0
jne 0x4051c9
cmp dword [ebp - 8], 0
jne 0x4051c9
mov ecx, dword [ebp + 0x14]
add ecx, 4
push ecx
push 2
push 0x44ca3c
push 2
push 4
push 0xc0000134
push 1
push 3
call fcn.0041b7ad
add esp, 0x20
cmp dword [ebp - 0x1bf0], 0
jne 0x4051ed
cmp dword [ebp - 0x1ff4], 0
jne 0x4051ed
cmp dword [ebp - 8], 0
jne 0x4051ed
mov dword [ebp - 0x1ff8], 0
jmp 0x4051f7
mov dword [ebp - 0x1ff8], 1
mov eax, dword [ebp - 0x1ff8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret