Function at 0x41ba9a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1650
call fcn.00430730
push esi
push edi
mov ecx, 6
mov esi, str.LoggerOutput
lea edi, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x448ad0]
mov word [ebp - 0x10c], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x448ad8]
mov word [ebp - 0x23c], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x23a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x13c], 0
mov edx, dword [0x448b4c]
and edx, 2
xor eax, eax
cmp edx, 2
sete al
mov dword [ebp - 0x114], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0
xor ecx, ecx
mov cx, word [0x44a17c]
test ecx, ecx
je 0x41bb8c
cmp dword [0x44929c], 0
jne 0x41bb8c
push 0
call fcn.00419809
add esp, 4
cmp dword [0x448b3c], 1
jne 0x41bba8
call fcn.0041cc32
push 0x43dee8
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 4
cmp dword [ebp - 0x114], 0
jne 0x41bbbe
cmp dword [0x44929c], 0
je 0x41c20c
cmp dword [ebp + 8], 0
je 0x41c20c
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x41c20c
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.0042125c
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x41bc8b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
add esi, eax
mov dword [ebp - 0x248], esi
push 0x48e
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x248]
shl ecx, 1
push ecx
call fcn.00420465
add esp, 0xc
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x41bc8b
mov edx, dword [ebp - 0x248]
push edx
push 0
mov eax, dword [ebp - 0x244]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x244]
push eax
mov ecx, dword [0x449ba0]
call dword [ecx + 0x4cc]
add esp, 0xc
mov edx, dword [ebp - 0x244]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x3f
je 0x41bcfc
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x21
je 0x41bcfc
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x2b
je 0x41bcfc
cmp dword [0x448b28], 0
je 0x41bcdb
cmp dword [0x448b1c], 0
jne 0x41bcdb
push str._s______s_r_n
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x41bcf0
push str._s______s_n
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov dword [ebp - 0x13c], 1
jmp 0x41bd3a
cmp dword [0x448b28], 0
je 0x41bd25
cmp dword [0x448b1c], 0
jne 0x41bd25
push str._s____s_r_n
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x41bd3a
push str._s____s_n
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov ecx, dword [0x44b3b8]
and ecx, 1
test ecx, ecx
je 0x41bd54
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x21
je 0x41bdaa
mov ecx, dword [0x44b3b8]
and ecx, 2
test ecx, ecx
je 0x41bd6e
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x2b
je 0x41bdaa
mov ecx, dword [0x44b3b8]
and ecx, 4
test ecx, ecx
je 0x41bd88
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x3f
je 0x41bdaa
mov ecx, dword [0x44b3b8]
and ecx, 4
test ecx, ecx
je 0x41bd9e
cmp dword [ebp - 0x13c], 0
jne 0x41bdaa
mov dword [ebp - 0x1650], 0
jmp 0x41bdb4
mov dword [ebp - 0x1650], 1
mov edx, dword [ebp - 0x1650]
mov dword [ebp - 0x240], edx
xor eax, eax
cmp dword [ebp + 0x10], 4
sete al
mov ecx, dword [ebp - 0x240]
or ecx, eax
mov dword [ebp - 0x240], ecx
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
add esi, eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
add esi, eax
lea edx, [esi + esi + 2]
mov dword [ebp - 0x110], edx
push 0x4b4
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.00420465
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41bead
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [0x449ba0]
call dword [eax + 0x4cc]
add esp, 0x10
push 0x4b7
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call fcn.00420465
add esp, 0xc
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x41bead
push 0
push 0
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [0x44929c], 0
je 0x41bfdd
cmp dword [ebp - 0x240], 0
je 0x41bfdd
cmp dword [0x448b1c], 0
je 0x41bedd
push 0x449d40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x41bf1e
push 0x449d40
call dword [0x4492b4]
test eax, eax
jne 0x41bf1e
cmp dword [0x448b20], 0
je 0x41bf13
cmp dword [0x44b6e0], 0
je 0x41bf13
lea eax, [ebp - 0x138]
push eax
push 0x43df48
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push 0x449d40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x448b20], 0
je 0x41bf45
cmp dword [0x44b6e0], 0
je 0x41bf45
lea ecx, [ebp - 0x138]
push ecx
push 0x43df84
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
cmp dword [0x448b28], 0
je 0x41bf84
cmp dword [0x448b1c], 0
jne 0x41bf84
cmp dword [0x44b914], 0
jne 0x41bf84
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [0x44929c]
push edx
call dword [sym.imp.MSVCRT.dll_fwprintf]
add esp, 0x10
jmp 0x41bf9b
mov eax, dword [ebp - 0x11c]
push eax
mov ecx, dword [0x44929c]
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
mov edx, dword [0x44929c]
push edx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
push 0x449d40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x448b20], 0
je 0x41bfdd
cmp dword [0x44b6e0], 0
je 0x41bfdd
lea eax, [ebp - 0x138]
push eax
push 0x43dfb8
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
cmp dword [ebp - 0x114], 0
je 0x41bfff
cmp dword [ebp - 0x240], 0
je 0x41bfff
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp dword [ebp - 0x11c], 0
je 0x41c017
mov edx, dword [ebp - 0x11c]
push edx
call fcn.004209ff
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x41c029
mov eax, dword [ebp - 0xc]
push eax
call fcn.004209ff
add esp, 4
cmp dword [0x448b1c], 0
jne 0x41c1f4
mov ecx, dword [0x44b3b8]
and ecx, 1
test ecx, ecx
je 0x41c1f4
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x21
jne 0x41c1f4
xor ecx, ecx
mov cx, word [0x44b3bc]
test ecx, ecx
je 0x41c1f4
mov dx, word [0x448ae0]
mov word [ebp - 0x164c], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x164a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x448ae8]
mov word [ebp - 0x1248], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1246]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x124c], 0
push 0x200
lea ecx, [ebp - 0x164c]
push ecx
push 0x43
mov edx, dword [0x4492ac]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 0x448f84
lea ecx, [ebp - 0x164c]
push ecx
lea edx, [ebp - 0x1248]
push edx
mov eax, dword [0x449ba0]
call dword [eax + 0x4cc]
add esp, 0x10
push 0x4e8
lea ecx, [ebp - 0x138]
push ecx
push 8
call fcn.00420465
add esp, 0xc
mov dword [ebp - 0x124c], eax
cmp dword [ebp - 0x124c], 0
je 0x41c1f4
push 0x44b3bc
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c179
push 0x4ea
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 4]
lea ecx, [eax + eax + 2]
push ecx
call fcn.00420465
add esp, 0xc
mov edx, dword [ebp - 0x124c]
mov dword [edx], eax
mov eax, dword [ebp - 0x124c]
cmp dword [eax], 0
je 0x41c179
push 0x44b3bc
mov ecx, dword [ebp - 0x124c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea eax, [ebp - 0x1248]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c1dd
push 0x4ec
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 4]
lea eax, [edx + edx + 2]
push eax
call fcn.00420465
add esp, 0xc
mov ecx, dword [ebp - 0x124c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x124c]
cmp dword [edx + 4], 0
je 0x41c1dd
lea eax, [ebp - 0x1248]
push eax
mov ecx, dword [ebp - 0x124c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, dword [ebp - 0x124c]
push eax
push 0
push 0x41c212
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp dword [ebp - 0x244], 0
je 0x41c20c
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.004209ff
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret