Function at 0x1034e00
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x16e0
call fcn.0105fe80
sub rsp, rax
mov rax, qword [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x16d0], rax
movzx eax, word [0x01001c50]
mov word [rsp + 0x160], ax
lea rax, [rsp + 0x162]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
mov qword [rsp + 0x280], 0
mov dword [rsp + 0x278], 0
mov dword [rsp + 0x48], 0
mov eax, dword [0x010689e8]
and eax, 2
cmp eax, 2
jne 0x1034ea9
mov dword [rsp + 0x16a8], 1
jmp 0x1034eb4
mov dword [rsp + 0x16a8], 0
mov eax, dword [rsp + 0x16a8]
mov dword [rsp + 0x270], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x260], 0
mov dword [rsp + 0x274], 0
mov dword [rsp + 0x268], 0
mov dword [rsp + 0x26c], 0
movzx eax, word [0x01066f10]
test eax, eax
je 0x1034f14
cmp qword [0x01068c18], 0
jne 0x1034f14
xor ecx, ecx
call fcn.01031b00
cmp dword [0x010689d8], 1
jne 0x1034f2f
call fcn.010362a0
lea rcx, [0x0100239c]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x270], 0
jne 0x1034f47
cmp qword [0x01068c18], 0
je 0x10355c6
cmp qword [rsp + 0x16f0], 0
je 0x10355c6
mov rax, qword [rsp + 0x16f0]
movzx eax, word [rax]
test eax, eax
je 0x10355c6
lea r9, [rsp + 0x268]
lea r8, [rsp + 0x274]
mov edx, 0x80
lea rcx, [rsp + 0x160]
call fcn.01036930
cmp qword [rsp + 0x16f8], 0
je 0x103504f
mov rcx, qword [rsp + 0x16f0]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov qword [rsp + 0x16b0], rax
mov rcx, qword [rsp + 0x16f8]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x16b0]
add rcx, rax
mov rax, rcx
shl rax, 1
mov qword [rsp + 0x288], rax
mov r8d, 0x6ee
lea rdx, [0x01007f48]
mov ecx, dword [rsp + 0x288]
call fcn.01014ff0
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0
je 0x103504f
mov r8, qword [rsp + 0x288]
xor edx, edx
mov rcx, qword [rsp + 0x280]
call sub.MSVCR80.dll_memset
mov r9, qword [rsp + 0x16f8]
mov r8, qword [rsp + 0x16f0]
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x280]
call fcn.0101e2c0
mov rax, qword [rsp + 0x280]
mov qword [rsp + 0x16f0], rax
mov rax, qword [rsp + 0x16f0]
movzx eax, word [rax]
cmp eax, 0x3f
je 0x103509f
mov rax, qword [rsp + 0x16f0]
movzx eax, word [rax]
cmp eax, 0x21
je 0x103509f
mov rax, qword [rsp + 0x16f0]
movzx eax, word [rax]
cmp eax, 0x2b
je 0x103509f
lea r8, [0x01007f30]
mov edx, 0x80
lea rcx, [rsp + 0x60]
call fcn.0105ab90
mov dword [rsp + 0x48], 1
jmp 0x10350b5
lea r8, [0x01007f18]
mov edx, 0x80
lea rcx, [rsp + 0x60]
call fcn.0105ab90
mov eax, dword [0x01068154]
and eax, 1
test eax, eax
je 0x10350d2
mov rax, qword [rsp + 0x16f0]
movzx eax, word [rax]
cmp eax, 0x21
je 0x103512d
mov eax, dword [0x01068154]
and eax, 2
test eax, eax
je 0x10350ef
mov rax, qword [rsp + 0x16f0]
movzx eax, word [rax]
cmp eax, 0x2b
je 0x103512d
mov eax, dword [0x01068154]
and eax, 4
test eax, eax
je 0x103510c
mov rax, qword [rsp + 0x16f0]
movzx eax, word [rax]
cmp eax, 0x3f
je 0x103512d
mov eax, dword [0x01068154]
and eax, 4
test eax, eax
je 0x1035120
cmp dword [rsp + 0x48], 0
jne 0x103512d
mov dword [rsp + 0x16b8], 0
jmp 0x1035138
mov dword [rsp + 0x16b8], 1
mov eax, dword [rsp + 0x16b8]
mov dword [rsp + 0x278], eax
cmp dword [rsp + 0x1700], 4
jne 0x103515d
mov dword [rsp + 0x16bc], 1
jmp 0x1035168
mov dword [rsp + 0x16bc], 0
mov eax, dword [rsp + 0x16bc]
mov ecx, dword [rsp + 0x278]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov qword [rsp + 0x16c0], rax
lea rcx, [rsp + 0x160]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x16c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x16c8], rax
mov rcx, qword [rsp + 0x16f0]
call qword [sym.imp.MSVCR80.dll_wcslen]
mov rcx, qword [rsp + 0x16c8]
add rcx, rax
mov rax, rcx
lea rax, [rax + rax + 2]
mov dword [rsp + 0x26c], eax
mov r8d, 0x712
lea rdx, [0x01007f48]
mov ecx, dword [rsp + 0x26c]
call fcn.01014ff0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x10352aa
movsxd rax, dword [rsp + 0x26c]
mov rcx, qword [rsp + 0x16f0]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.0101e2c0
mov r8d, 0x717
lea rdx, [0x01007f48]
mov ecx, dword [rsp + 0x26c]
call fcn.01014ff0
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x260], 0
je 0x10352aa
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x26c]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x260]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x40]
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp qword [0x01068c18], 0
je 0x10353b9
cmp dword [rsp + 0x278], 0
je 0x10353b9
lea rcx, [0x01066bf0]
call qword [0x01069178]
test eax, eax
jne 0x103530a
cmp dword [0x010689c0], 0
je 0x10352fd
cmp dword [0x01068484], 0
je 0x10352fd
lea rdx, [0x01007f48]
lea rcx, [0x01001b80]
call qword [sym.imp.MSVCR80.dll_wprintf]
lea rcx, [0x01066bf0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x010689c0], 0
je 0x1035330
cmp dword [0x01068484], 0
je 0x1035330
lea rdx, [0x01007f48]
lea rcx, [0x01001b48]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [0x010686b8], 0
jne 0x103535d
mov r9, qword [rsp + 0x16f0]
lea r8, [rsp + 0x160]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x01068c18]
call qword [sym.imp.MSVCR80.dll_fwprintf]
jmp 0x1035379
mov r8, qword [rsp + 0x260]
lea rdx, [0x01007f10]
mov rcx, qword [0x01068c18]
call qword [sym.imp.MSVCR80.dll_fprintf]
mov rcx, qword [0x01068c18]
call qword [sym.imp.MSVCR80.dll_fflush]
lea rcx, [0x01066bf0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x010689c0], 0
je 0x10353b9
cmp dword [0x01068484], 0
je 0x10353b9
lea rdx, [0x01007f48]
lea rcx, [0x01001b10]
call qword [sym.imp.MSVCR80.dll_wprintf]
cmp dword [rsp + 0x270], 0
je 0x10353e2
cmp dword [rsp + 0x278], 0
je 0x10353e2
mov rdx, qword [rsp + 0x260]
lea rcx, [0x01007f10]
call qword [sym.imp.MSVCR80.dll_printf]
cmp qword [rsp + 0x260], 0
je 0x10353fa
mov rcx, qword [rsp + 0x260]
call fcn.01015770
cmp qword [rsp + 0x40], 0
je 0x103540c
mov rcx, qword [rsp + 0x40]
call fcn.01015770
mov eax, dword [0x01068154]
and eax, 1
test eax, eax
je 0x10355ae
mov rax, qword [rsp + 0x16f0]
movzx eax, word [rax]
cmp eax, 0x21
jne 0x10355ae
movzx eax, word [0x0106815c]
test eax, eax
je 0x10355ae
movzx eax, word [0x01001c50]
mov word [rsp + 0x2a0], ax
lea rax, [rsp + 0x2a2]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
movzx eax, word [0x01001c50]
mov word [rsp + 0x6a0], ax
lea rax, [rsp + 0x6a2]
mov rdi, rax
xor eax, eax
mov ecx, 0xffe
rep stosb byte [rdi], al
mov qword [rsp + 0x290], 0
mov r9d, 0x200
lea r8, [rsp + 0x2a0]
mov edx, 0x43
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rax, qword [rsp + 0x16f0]
add rax, 4
mov qword [rsp + 0x20], rax
lea r9, [0x01068e30]
lea r8, [rsp + 0x2a0]
mov edx, 0x800
lea rcx, [rsp + 0x6a0]
call fcn.01016110
mov r8d, 0x746
lea rdx, [0x01007f48]
mov ecx, reloc.ODBC32.dll_SQLFreeStmt
call fcn.01014ff0
mov qword [rsp + 0x290], rax
cmp qword [rsp + 0x290], 0
je 0x10355ae
mov r8d, reloc.ODBC32.dll_SQLFreeStmt
xor edx, edx
mov rcx, qword [rsp + 0x290]
call sub.MSVCR80.dll_memset
mov rdx, qword [rsp + 0x290]
lea rcx, [0x0106815c]
call fcn.01030b10
mov rax, qword [rsp + 0x290]
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0x6a0]
call fcn.01030b10
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x290]
lea r8, [0x010355f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR80.dll__beginthreadex]
mov qword [rsp + 0x16a0], rax
cmp qword [rsp + 0x16a0], 0
je 0x10355ae
mov rcx, qword [rsp + 0x16a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x16a0], 0
cmp qword [rsp + 0x280], 0
je 0x10355c6
mov rcx, qword [rsp + 0x280]
call fcn.01015770
mov rcx, qword [rsp + 0x16d0]
xor rcx, rsp
call fcn.01059ab0
add rsp, 0x16e0
pop rdi
ret