Function at 0x404fa0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00434e00
mov eax, dword [0x44d558]
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0xe
mov esi, str.AlertNotifyFailSafeOperator
lea edi, [ebp - 0x1ff8]
rep movsd dword es:[edi], dword [esi]
mov ax, word [0x44d814]
mov word [ebp - 0x13b0], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x13ae]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44d81c]
mov word [ebp - 0x17b0], cx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x17ae]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44d824]
mov word [ebp - 0x808], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x806]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x44d82c]
mov word [ebp - 0xc08], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xc06]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44d834]
mov word [ebp - 0x408], cx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x406]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x44d83c]
mov word [ebp - 0x1fb0], dx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x1fae]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0xc0c], 0
mov dword [ebp - 0x1fbc], 0
mov dword [ebp - 0x1fc0], 0
mov dword [ebp - 0xc10], 0
mov dword [ebp - 0x1fb8], 0
mov dword [ebp - 0x1ffc], 0
mov dword [ebp - 0x1fb4], 0
push 0x200
lea eax, [ebp - 0xc08]
push eax
push 7
mov ecx, dword [0x44e620]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov edx, dword [ebp + 0xc]
push edx
push 0x200
lea eax, [ebp - 0xc08]
push eax
call fcn.00407380
lea ecx, [ebp - 0xc08]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov eax, dword [0x44fc3c]
and eax, 1
je 0x4051a1
movzx ecx, word [0x44fa3c]
test ecx, ecx
je 0x4051a1
mov edx, dword [ebp + 0x14]
add edx, 4
push edx
push 0x44f83c
push 0xd1
push 0
push 3
call fcn.0041d760
add esp, 0x14
lea eax, [ebp - 0xfb0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406190
add esp, 8
test eax, eax
je 0x4051a1
mov edx, dword [ebp + 8]
push edx
push 1
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
lea ecx, [ebp - 0xfac]
push ecx
push 0xc0000132
mov edx, dword [ebp - 0xfb0]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x44fa3c
push 1
call fcn.0041cb70
add esp, 0x2c
test eax, eax
je 0x4051a1
mov dword [ebp - 0xc0c], 1
mov edx, dword [0x44fc3c]
and edx, 2
je 0x4052df
movzx eax, word [0x44f93c]
test eax, eax
je 0x4052df
mov ecx, dword [ebp + 0x14]
add ecx, 4
push ecx
push 0x44f83c
push 0xd2
push 0
push 3
call fcn.0041d760
add esp, 0x14
push 0x800
lea edx, [ebp - 0x1fb0]
push edx
push 0x44f93c
push 0x43dbc8
push 0x44fc40
call fcn.004321e0
add esp, 0x14
push eax
lea eax, [ebp - 0x13b0]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x800
lea ecx, [ebp - 0x1fb0]
push ecx
push 0x44f93c
push 0x43dbd4
push 0x44fd40
call fcn.004321e0
add esp, 0x14
push eax
lea edx, [ebp - 0x17b0]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push 0x800
lea eax, [ebp - 0x1fb0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43dbe0
push 0x44fe40
call fcn.004321e0
add esp, 0x14
push eax
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0xfb0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406190
add esp, 8
test eax, eax
je 0x4052df
mov edx, dword [ebp + 8]
push edx
push 1
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
lea ecx, [ebp - 0xfac]
push ecx
push 0xc0000133
mov edx, dword [ebp - 0xfb0]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0x17b0]
push edx
lea eax, [ebp - 0x13b0]
push eax
push 2
call fcn.0041cb70
add esp, 0x2c
test eax, eax
je 0x4052df
mov dword [ebp - 0x1fbc], 1
cmp dword [0x44de90], 0
jne 0x405505
mov ecx, dword [0x44fc3c]
and ecx, 4
je 0x405505
movzx edx, word [0x44fb3c]
test edx, edx
je 0x405505
mov eax, dword [ebp + 0x14]
add eax, 4
push eax
push 0x44f83c
push 0xd3
push 0
push 3
call fcn.0041d760
add esp, 0x14
push 0x892
lea ecx, [ebp - 0x1ff8]
push ecx
push 8
call fcn.00422830
add esp, 0xc
mov dword [ebp - 0xc10], eax
cmp dword [ebp - 0xc10], 0
je 0x405505
push 0x44fb3c
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov dword [ebp - 0x1fb4], eax
cmp dword [ebp - 0x1fb4], 0
je 0x4053b6
push 0x894
lea edx, [ebp - 0x1ff8]
push edx
mov eax, dword [ebp - 0x1fb4]
lea ecx, [eax + eax + 2]
push ecx
call fcn.00422830
add esp, 0xc
mov edx, dword [ebp - 0xc10]
mov dword [edx], eax
mov eax, dword [ebp - 0xc10]
cmp dword [eax], 0
je 0x4053b6
push 0x44fb3c
mov ecx, dword [ebp - 0xc10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
lea edx, [esi + eax + 2]
cmp edx, 0x400
jae 0x405402
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x43dbec
lea edx, [ebp - 0x1fb0]
push edx
mov eax, dword [0x450d4c]
call dword [eax + 0x4cc]
add esp, 0x10
jmp 0x405416
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1fb0]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x1fb0]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
mov dword [ebp - 0x1fb4], eax
cmp dword [ebp - 0x1fb4], 0
je 0x405483
push 0x8a3
lea ecx, [ebp - 0x1ff8]
push ecx
mov edx, dword [ebp - 0x1fb4]
lea eax, [edx + edx + 2]
push eax
call fcn.00422830
add esp, 0xc
mov ecx, dword [ebp - 0xc10]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc10]
cmp dword [edx + 4], 0
je 0x405483
lea eax, [ebp - 0x1fb0]
push eax
mov ecx, dword [ebp - 0xc10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov eax, dword [ebp - 0xc10]
push eax
push 0
push 0x41e0f0
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
mov dword [ebp - 0x1fc0], 1
mov ecx, dword [ebp + 0x14]
cmp dword [ecx + 0x1e4], 0x37b9
je 0x405505
lea edx, [ebp - 0xfb0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406190
add esp, 8
test eax, eax
je 0x405505
push 0
lea ecx, [ebp - 0x1ffc]
push ecx
lea edx, [ebp - 0x1fb8]
push edx
call fcn.00423560
add esp, 0xc
push 4
mov eax, dword [ebp - 0x1ffc]
push eax
mov ecx, dword [ebp - 0x1fb8]
push ecx
mov edx, dword [ebp - 0xfb0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004093e0
add esp, 0x14
cmp dword [ebp - 0xc0c], 0
jne 0x405543
cmp dword [ebp - 0x1fbc], 0
jne 0x405543
cmp dword [ebp - 0x1fc0], 0
jne 0x405543
mov ecx, dword [ebp + 0x14]
add ecx, 4
push ecx
push 2
push 0x44f83c
push 2
push 4
push 0xc0000134
push 1
push 3
call fcn.0041cf30
add esp, 0x20
cmp dword [ebp - 0xc0c], 0
jne 0x40556a
cmp dword [ebp - 0x1fbc], 0
jne 0x40556a
cmp dword [ebp - 0x1fc0], 0
jne 0x40556a
mov dword [ebp - 0x2000], 0
jmp 0x405574
mov dword [ebp - 0x2000], 1
mov eax, dword [ebp - 0x2000]
mov ecx, dword [ebp - 4]
call fcn.00434de1
pop edi
pop esi
mov esp, ebp
pop ebp
ret