Function at 0x10168a0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 6
mov esi, 0x1002830
lea edi, [ebp - 0x103c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x818], dx
push 0x3fe
push 0
lea eax, [ebp - 0x816]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x1020], cx
push 0x7fe
push 0
lea edx, [ebp - 0x101e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
push 0
lea eax, [ebp - 0x1040]
push eax
lea ecx, [ebp - 0x820]
push ecx
call fcn.0102a6a0
add esp, 0xc
push 0x400
lea edx, [ebp - 0x1020]
push edx
push 0
push 0
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 4
call fcn.01017b20
add esp, 0x28
mov dword [ebp - 0x40c], 0
jmp 0x10169d7
mov edx, dword [ebp - 0x40c]
add edx, 1
mov dword [ebp - 0x40c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x40c]
cmp ecx, dword [eax + 8]
jge 0x1016be0
mov edx, dword [ebp - 0x40c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SQLSVC90.dll_SHRecMemLock]
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x1016bdb
mov ecx, dword [ebp - 0x414]
mov edx, dword [ecx + 0x110]
and edx, 4
je 0x1016bdb
mov eax, dword [ebp - 0x414]
movzx ecx, word [eax + 0x2b4]
test ecx, ecx
je 0x1016bdb
mov edx, dword [ebp + 0x10]
add edx, 4
push edx
mov eax, dword [ebp - 0x414]
add eax, 4
push eax
push 0xed
push 0
push 3
call fcn.01028fb0
add esp, 0x14
push 0x8b1
lea ecx, [ebp - 0x103c]
push ecx
push 8
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x1016bdb
mov edx, dword [ebp - 0x414]
add edx, 0x2b4
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
je 0x1016b00
push 0x8b3
lea eax, [ebp - 0x103c]
push eax
mov ecx, dword [ebp - 0x81c]
lea edx, [ecx + ecx + 2]
push edx
call fcn.01011700
add esp, 0xc
mov ecx, dword [ebp - 0x410]
mov dword [ecx], eax
mov edx, dword [ebp - 0x410]
cmp dword [edx], 0
je 0x1016b00
mov eax, dword [ebp - 0x414]
add eax, 0x2b4
push eax
mov ecx, dword [ebp - 0x81c]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x410]
mov eax, dword [edx]
push eax
call fcn.01010390
lea ecx, [ebp - 0x1020]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
je 0x1016b73
push 0x8b9
lea edx, [ebp - 0x103c]
push edx
mov eax, dword [ebp - 0x81c]
lea ecx, [eax + eax + 2]
push ecx
call fcn.01011700
add esp, 0xc
mov edx, dword [ebp - 0x410]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x410]
cmp dword [eax + 4], 0
je 0x1016b73
lea ecx, [ebp - 0x1020]
push ecx
mov edx, dword [ebp - 0x81c]
add edx, 1
push edx
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax + 4]
push ecx
call fcn.01010390
push 0
push 0
mov edx, dword [ebp - 0x410]
push edx
push 0x1029870
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1044], eax
cmp dword [ebp - 0x1044], 0
je 0x1016bb6
mov eax, dword [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1044], 0
push 4
mov ecx, dword [ebp - 0x1040]
push ecx
mov edx, dword [ebp - 0x820]
push edx
mov eax, dword [ebp - 0x414]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0101b720
add esp, 0x14
jmp 0x10169c8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret