Function at 0x1036a10
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x5330
call fcn.01047580
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov ecx, 0xb
mov esi, 0x1008254
lea edi, [ebp - 0x3710]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ax, word [0x10015d4]
mov word [ebp - 0x1a90], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x1a8e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x36e0], dx
push 0x7fe
push 0
lea eax, [ebp - 0x36de]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0xa08], cx
push 0x1fe
push 0
lea edx, [ebp - 0xa06]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x37d8], ax
push 0xc6
push 0
lea ecx, [ebp - 0x37d6]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0xe08], dx
push 0x3fe
push 0
lea eax, [ebp - 0xe06]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x26d0], cx
push 0x1fe
push 0
lea edx, [ebp - 0x26ce]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x2ee0], dx
push 0x7fe
push 0
lea eax, [ebp - 0x2ede]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x24d0], cx
push 0x1fe
push 0
lea edx, [ebp - 0x24ce]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x1eb0], ax
push 0x7e
push 0
lea ecx, [ebp - 0x1eae]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x22d0], dx
push 0x40e
push 0
lea eax, [ebp - 0x22ce]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x1ebc], 0
mov dword [ebp - 0x26e0], 0
mov dword [ebp - 0x26d4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1ec0], 0
mov dword [ebp - 0x26dc], 0
mov dword [ebp - 0x37dc], 0
mov dword [ebp - 0x1eb8], 0
mov dword [ebp - 0x1eb4], 0
mov dword [ebp - 0x26d8], 0
push 0
lea ecx, [ebp - 0x1eb4]
push ecx
lea edx, [ebp - 0x1eb8]
push edx
call fcn.0102a6a0
add esp, 0xc
push 0x100
lea eax, [ebp - 0x24d0]
push eax
push 8
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea edx, [ebp - 0x1eb0]
push edx
push 3
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x52dc], ecx
cmp dword [ebp - 0x52dc], 0
je 0x1036d98
cmp dword [ebp - 0x52dc], 1
je 0x1036ca0
cmp dword [ebp - 0x52dc], 3
je 0x1036e8d
jmp 0x1036eeb
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x330]
and eax, 1
mov dword [ebp - 0x1ebc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x334]
and edx, 1
je 0x1036cd8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x340], 0
je 0x1036cd8
mov dword [ebp - 0x52e0], 1
jmp 0x1036ce2
mov dword [ebp - 0x52e0], 0
mov ecx, dword [ebp - 0x52e0]
mov dword [ebp - 0x26e0], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x338]
and eax, 1
je 0x1036d14
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x344], 0
je 0x1036d14
mov dword [ebp - 0x52e4], 1
jmp 0x1036d1e
mov dword [ebp - 0x52e4], 0
mov edx, dword [ebp - 0x52e4]
mov dword [ebp - 0x26d4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x33c]
and ecx, 1
je 0x1036d50
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x348], 0
je 0x1036d50
mov dword [ebp - 0x52e8], 1
jmp 0x1036d5a
mov dword [ebp - 0x52e8], 0
mov eax, dword [ebp - 0x52e8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34c]
and edx, 1
mov dword [ebp - 0x1ec0], edx
push 0x100
lea eax, [ebp - 0xa08]
push eax
push 0xd5
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x1036f09
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x330]
and eax, 2
mov dword [ebp - 0x1ebc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x334]
and edx, 2
je 0x1036dd0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x340], 0
je 0x1036dd0
mov dword [ebp - 0x52ec], 1
jmp 0x1036dda
mov dword [ebp - 0x52ec], 0
mov ecx, dword [ebp - 0x52ec]
mov dword [ebp - 0x26e0], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x338]
and eax, 2
je 0x1036e0c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x344], 0
je 0x1036e0c
mov dword [ebp - 0x52f0], 1
jmp 0x1036e16
mov dword [ebp - 0x52f0], 0
mov edx, dword [ebp - 0x52f0]
mov dword [ebp - 0x26d4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x33c]
and ecx, 2
je 0x1036e48
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x348], 0
je 0x1036e48
mov dword [ebp - 0x52f4], 1
jmp 0x1036e52
mov dword [ebp - 0x52f4], 0
mov eax, dword [ebp - 0x52f4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34c]
and edx, 2
mov dword [ebp - 0x1ec0], edx
push 0x100
lea eax, [ebp - 0xa08]
push eax
push 0xd6
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x1036f09
push 0x100
lea edx, [ebp - 0x26d0]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.0103a5f0
add esp, 0xc
push 0x200
lea ecx, [ebp - 0xe08]
push ecx
push 0xd7
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x26d0]
push ecx
lea edx, [ebp - 0xe08]
push edx
push 0x100
lea eax, [ebp - 0xa08]
push eax
call fcn.01011d00
add esp, 0x14
jmp 0x1036f09
push 0x100
lea ecx, [ebp - 0xa08]
push ecx
push 0xd8
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [ebp + 0x14], 0
je 0x1036f33
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0xa08]
push ecx
push 0x1008244
push 0x400
lea edx, [ebp - 0x36e0]
push edx
call fcn.01011d00
add esp, 0x14
push 0x800
lea eax, [ebp - 0x2ee0]
push eax
push 0x10015d4
push 0x100275c
lea ecx, [ebp - 0x36e0]
push ecx
call fcn.01042360
add esp, 0x14
push 0x800
lea edx, [ebp - 0x36e0]
push edx
push 0x10015d4
push 0x1002764
lea eax, [ebp - 0x2ee0]
push eax
call fcn.01042360
add esp, 0x14
lea ecx, [ebp - 0x36e0]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0101b910
add esp, 0x10
push 0x884
push 0
lea edx, [ebp - 0x1690]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x1690], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x168c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1688], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x1684], edx
mov eax, dword [ebp + 0xc]
add eax, 0xe44
push eax
push 0x23
lea ecx, [ebp - 0x1680]
push ecx
call fcn.01010390
mov dword [ebp - 0x1638], 0
mov dword [ebp - 0x1634], 0
mov dword [ebp - 0x1630], 0
push 0x3ff
lea edx, [ebp - 0x36e0]
push edx
push 0x400
lea eax, [ebp - 0x162c]
push eax
call fcn.0101dad0
mov word [ebp - 0xe2e], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xe2c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x5a0]
mov dword [ebp - 0xe28], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x5a4]
mov dword [ebp - 0xe24], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x5a0], 0
je 0x103709d
mov ecx, dword [ebp - 0x1eb4]
push ecx
mov edx, dword [ebp - 0x1eb8]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x5a4]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x5a0]
push eax
call dword [sym.imp.SQLSVC90.dll_QScheduleGetTimeDelta]
add esp, 0x10
push eax
call dword [sym.imp.SQLSVC90.dll_QScheduleSecToHourFormat]
add esp, 4
mov dword [ebp - 0xe20], eax
mov dword [ebp - 0xe10], 0
mov dword [ebp - 0xe1c], 0
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe14], 0
cmp dword [ebp - 0x1ebc], 0
je 0x10371c4
cmp dword [ebp + 0x10], 1
jne 0x10370f3
push 0x100
lea ecx, [ebp - 0xa08]
push ecx
push 0xb
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [ebp + 0x10], 0
jne 0x1037114
push 0x100
lea eax, [ebp - 0xa08]
push eax
push 0xa
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov edx, dword [ebp + 0xc]
add edx, 0x35c
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x358
push eax
push 0x64
lea ecx, [ebp - 0x37d8]
push ecx
call fcn.0102a850
add esp, 0x10
cmp dword [0x104e7b0], 0
je 0x103714f
mov edx, dword [ebp + 0xc]
add edx, 0x10
mov dword [ebp - 0x52f8], edx
jmp 0x103715d
mov eax, dword [ebp + 0xc]
add eax, 0xe44
mov dword [ebp - 0x52f8], eax
mov ecx, dword [ebp - 0x52f8]
push ecx
push 0xb6
push 0
push 3
call fcn.01028fb0
add esp, 0x10
lea edx, [ebp - 0x36e0]
push edx
push 2
lea eax, [ebp - 0x37d8]
push eax
push 2
lea ecx, [ebp - 0xa08]
push ecx
push 2
mov edx, dword [ebp + 0xc]
add edx, 0xe44
push edx
push 2
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
push 2
push 0xa
push 0x400000d0
xor ecx, ecx
cmp dword [ebp + 0x10], 0
setne cl
lea ecx, [ecx + ecx + 2]
push ecx
push 1
call fcn.010287e0
add esp, 0x38
cmp dword [ebp - 0x26e0], 0
jne 0x10371e0
cmp dword [ebp - 0x26d4], 0
jne 0x10371e0
cmp dword [ebp - 4], 0
je 0x103758c
mov dx, word [0x10015d4]
mov word [ebp - 0x3eb8], dx
push 0xfe
push 0
lea eax, [ebp - 0x3eb6]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x3d28], cx
push 0xfe
push 0
lea edx, [ebp - 0x3d26]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x3b60], ax
push 0x7e
push 0
lea ecx, [ebp - 0x3b5e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x3a60], dx
push 0x7e
push 0
lea eax, [ebp - 0x3a5e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x3db8], cx
push 0x7e
push 0
lea edx, [ebp - 0x3db6]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x3ae0], ax
push 0x7e
push 0
lea ecx, [ebp - 0x3ade]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x39e0], dx
push 0x1fe
push 0
lea eax, [ebp - 0x39de]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x3c28], cx
push 0xc6
push 0
lea edx, [ebp - 0x3c26]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x100
lea eax, [ebp - 0x39e0]
push eax
push 9
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea edx, [ebp - 0x3db8]
push edx
push 0xa
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea ecx, [ebp - 0x3ae0]
push ecx
push 0xb
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea eax, [ebp - 0x3a60]
push eax
push 0x18
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea edx, [ebp - 0x3b60]
push edx
push 0x17
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x3ec4]
push ecx
mov edx, dword [ebp - 0xe20]
push edx
call dword [sym.imp.SQLSVC90.dll_QScheduleConvertValToTimeStruct]
add esp, 8
mov eax, dword [ebp - 0x3ebc]
push eax
mov ecx, dword [ebp - 0x3ec0]
push ecx
mov edx, dword [ebp - 0x3ec4]
push edx
lea eax, [ebp - 0x3a60]
push eax
push 0x64
lea ecx, [ebp - 0x3c28]
push ecx
call fcn.01011d00
add esp, 0x18
push 0x10
push 0
lea edx, [ebp - 0x3d38]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3ed0]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x358]
push edx
call dword [sym.imp.SQLSVC90.dll_QScheduleConvertValToDateStruct]
add esp, 8
lea eax, [ebp - 0x3ec4]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x35c]
push edx
call dword [sym.imp.SQLSVC90.dll_QScheduleConvertValToTimeStruct]
add esp, 8
mov ax, word [ebp - 0x3ec8]
mov word [ebp - 0x3d38], ax
mov cx, word [ebp - 0x3ecc]
mov word [ebp - 0x3d36], cx
mov dx, word [ebp - 0x3ed0]
mov word [ebp - 0x3d32], dx
mov ax, word [ebp - 0x3ec4]
mov word [ebp - 0x3d30], ax
mov cx, word [ebp - 0x3ec0]
mov word [ebp - 0x3d2e], cx
mov dx, word [ebp - 0x3ebc]
mov word [ebp - 0x3d2c], dx
cmp dword [0x104e2f0], 0
je 0x1037461
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0x52fc], eax
jmp 0x103746d
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp - 0x52fc], eax
push 0x80
lea eax, [ebp - 0x3eb8]
push eax
push 0
lea ecx, [ebp - 0x3d38]
push ecx
mov edx, dword [0x104e2f0]
neg edx
sbb edx, edx
and edx, 0x80000000
add edx, 0x80000000
or edx, 1
push edx
mov eax, dword [ebp - 0x52fc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
cmp dword [0x104e2f0], 0
je 0x10374c0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0x5300], eax
jmp 0x10374cc
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp - 0x5300], eax
push 0x80
lea ecx, [ebp - 0x3d28]
push ecx
push 0
lea edx, [ebp - 0x3d38]
push edx
mov eax, dword [0x104e2f0]
neg eax
sbb eax, eax
and eax, 0x80000000
add eax, 0x80000000
push eax
mov ecx, dword [ebp - 0x5300]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
cmp dword [ebp + 0x10], 1
jne 0x1037516
lea edx, [ebp - 0x3ae0]
mov dword [ebp - 0x5304], edx
jmp 0x1037522
lea eax, [ebp - 0x3db8]
mov dword [ebp - 0x5304], eax
movzx ecx, word [ebp - 0x3c28]
test ecx, ecx
je 0x103753b
lea edx, [ebp - 0x3c28]
mov dword [ebp - 0x5308], edx
jmp 0x1037547
lea eax, [ebp - 0x3b60]
mov dword [ebp - 0x5308], eax
lea ecx, [ebp - 0x36e0]
push ecx
mov edx, dword [ebp - 0x5304]
push edx
mov eax, dword [ebp - 0x5308]
push eax
lea ecx, [ebp - 0x3d28]
push ecx
lea edx, [ebp - 0x3eb8]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
lea ecx, [ebp - 0x39e0]
push ecx
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.01011d00
add esp, 0x24
cmp dword [ebp - 0x26d4], 0
je 0x103792c
lea eax, [ebp - 0x1e30]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x344]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0101e9d0
add esp, 0xc
test eax, eax
je 0x103792c
mov dword [ebp - 0x3ed4], 0
push 0x6d4
lea ecx, [ebp - 0x3710]
push ecx
push 8
call fcn.01011700
add esp, 0xc
mov dword [ebp - 0x3ed4], eax
cmp dword [ebp - 0x3ed4], 0
je 0x103792c
push 8
push 0
mov edx, dword [ebp - 0x3ed4]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1b7c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov dword [ebp - 0x26d8], eax
cmp dword [ebp - 0x26d8], 0
je 0x1037681
mov ecx, dword [ebp - 0x26d8]
add ecx, 1
test ecx, ecx
jle 0x1037681
push 0x6d8
lea edx, [ebp - 0x3710]
push edx
mov eax, dword [ebp - 0x26d8]
lea ecx, [eax + eax + 2]
push ecx
call fcn.01011700
add esp, 0xc
mov edx, dword [ebp - 0x3ed4]
mov dword [edx], eax
mov eax, dword [ebp - 0x3ed4]
cmp dword [eax], 0
je 0x1037681
lea ecx, [ebp - 0x1b7c]
push ecx
mov edx, dword [ebp - 0x26d8]
add edx, 1
push edx
mov eax, dword [ebp - 0x3ed4]
mov ecx, dword [eax]
push ecx
call fcn.01010390
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov dword [ebp - 0x26d8], eax
cmp dword [ebp - 0x26d8], 0
je 0x1037701
mov eax, dword [ebp - 0x26d8]
add eax, 1
test eax, eax
jle 0x1037701
push 0x6df
lea ecx, [ebp - 0x3710]
push ecx
mov edx, dword [ebp - 0x26d8]
lea eax, [edx + edx + 2]
push eax
call fcn.01011700
add esp, 0xc
mov ecx, dword [ebp - 0x3ed4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x3ed4]
cmp dword [edx + 4], 0
je 0x1037701
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp - 0x26d8]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x3ed4]
mov eax, dword [edx + 4]
push eax
call fcn.01010390
mov dword [ebp - 0x3ed8], 0
lea ecx, [ebp - 0x1b7c]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x37dc], eax
jne 0x103775a
push 0
push 0
mov edx, dword [ebp - 0x3ed4]
push edx
push 0x1029870
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x3ed8], eax
cmp dword [ebp - 0x3ed8], 0
jne 0x103787d
mov eax, dword [ebp - 0x3ed4]
cmp dword [eax], 0
je 0x1037776
mov ecx, dword [ebp - 0x3ed4]
mov edx, dword [ecx]
push edx
call fcn.01011d50
add esp, 4
mov eax, dword [ebp - 0x3ed4]
cmp dword [eax + 4], 0
je 0x1037794
mov ecx, dword [ebp - 0x3ed4]
mov edx, dword [ecx + 4]
push edx
call fcn.01011d50
add esp, 4
mov eax, dword [ebp - 0x3ed4]
push eax
call fcn.01011d50
add esp, 4
cmp dword [ebp - 0x37dc], 0
je 0x10377f1
cmp dword [0x104e7b0], 0
je 0x10377c3
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x530c], ecx
jmp 0x10377d2
mov edx, dword [ebp + 0xc]
add edx, 0xe44
mov dword [ebp - 0x530c], edx
mov eax, dword [ebp - 0x530c]
push eax
lea ecx, [ebp - 0x1e2c]
push ecx
push 0x10c
push 0
push 3
call fcn.01028fb0
add esp, 0x14
push 0x200
lea edx, [ebp - 0xe08]
push edx
push 0x10d
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x1e2c]
push ecx
lea edx, [ebp - 0xe08]
push edx
push 0x200
lea eax, [ebp - 0x1a90]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0x1a90]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
lea edx, [ebp - 0x162c]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add eax, 1
mov ecx, 0x400
sub ecx, eax
cmp esi, ecx
jae 0x1037878
lea edx, [ebp - 0x1a90]
push edx
push 0x400
lea eax, [ebp - 0x162c]
push eax
call fcn.01010ee0
jmp 0x103790c
cmp dword [0x104e7b0], 0
je 0x1037894
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x5310], ecx
jmp 0x10378a3
mov edx, dword [ebp + 0xc]
add edx, 0xe44
mov dword [ebp - 0x5310], edx
lea eax, [ebp - 0x1e2c]
push eax
mov ecx, dword [ebp - 0x5310]
push ecx
push 0xf7
push 0
push 3
call fcn.01028fb0
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x344]
mov dword [ebp - 0xe18], eax
push 0
lea ecx, [ebp - 0x1eb4]
push ecx
lea edx, [ebp - 0x1eb8]
push edx
call fcn.0102a6a0
add esp, 0xc
push 4
mov eax, dword [ebp - 0x1eb4]
push eax
mov ecx, dword [ebp - 0x1eb8]
push ecx
mov edx, dword [ebp - 0x1e30]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0101b720
add esp, 0x14
cmp dword [ebp - 0x3ed8], 0
je 0x103792c
mov ecx, dword [ebp - 0x3ed8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3ed8], 0
cmp dword [ebp - 0x26e0], 0
je 0x1037b15
lea edx, [ebp - 0x1e30]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x340]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0101e9d0
add esp, 0xc
test eax, eax
je 0x1037b15
push 0x104ee20
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
lea ecx, [ebp - 0x24d0]
push ecx
push 0x208
lea edx, [ebp - 0x22d0]
push edx
call fcn.01011d00
add esp, 0x14
lea eax, [ebp - 0x1d1c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x37dc], eax
jne 0x10379ed
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp + 0xc]
add edx, 0x10
push edx
lea eax, [ebp - 0x1e2c]
push eax
push 0xc00000d2
mov ecx, dword [ebp - 0x1e30]
push ecx
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x22d0]
push eax
push 0
lea ecx, [ebp - 0x1d1c]
push ecx
push 1
call fcn.01028540
add esp, 0x2c
test eax, eax
jne 0x1037ac1
cmp dword [ebp - 0x37dc], 0
je 0x1037a3a
cmp dword [0x104e7b0], 0
je 0x1037a0d
mov edx, dword [ebp + 0xc]
add edx, 0x10
mov dword [ebp - 0x5314], edx
jmp 0x1037a1b
mov eax, dword [ebp + 0xc]
add eax, 0xe44
mov dword [ebp - 0x5314], eax
mov ecx, dword [ebp - 0x5314]
push ecx
lea edx, [ebp - 0x1e2c]
push edx
push 0x10a
push 0
push 3
call fcn.01028fb0
add esp, 0x14
push 0x200
lea eax, [ebp - 0xe08]
push eax
push 0x19
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [ebp - 0x1e2c]
push edx
lea eax, [ebp - 0xe08]
push eax
push 0x200
lea ecx, [ebp - 0x1a90]
push ecx
call fcn.01011d00
add esp, 0x10
lea edx, [ebp - 0x1a90]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x162c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add eax, 1
mov ecx, 0x400
sub ecx, eax
cmp esi, ecx
jae 0x1037abf
lea edx, [ebp - 0x1a90]
push edx
push 0x400
lea eax, [ebp - 0x162c]
push eax
call fcn.01010ee0
jmp 0x1037b15
cmp dword [0x104e7b0], 0
je 0x1037ad8
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x5318], ecx
jmp 0x1037ae7
mov edx, dword [ebp + 0xc]
add edx, 0xe44
mov dword [ebp - 0x5318], edx
lea eax, [ebp - 0x1e2c]
push eax
mov ecx, dword [ebp - 0x5318]
push ecx
push 0xb7
push 0
push 3
call fcn.01028fb0
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x340]
mov dword [ebp - 0xe1c], eax
cmp dword [ebp - 4], 0
je 0x1037f1f
lea ecx, [ebp - 0x1e30]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x348]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0101e9d0
add esp, 0xc
test eax, eax
je 0x1037f1f
mov dx, word [0x10015d4]
mov word [ebp - 0x46d8], dx
push 0x3fe
push 0
lea eax, [ebp - 0x46d6]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x4ad8], cx
push 0x3fe
push 0
lea edx, [ebp - 0x4ad6]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov ax, word [0x10015d4]
mov word [ebp - 0x42d8], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x42d6]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x52d8], dx
push 0x7fe
push 0
lea eax, [ebp - 0x52d6]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x1e30]
push ecx
call fcn.010186e0
add esp, 4
test eax, eax
jne 0x1037cbb
cmp dword [0x104e7b0], 0
je 0x1037c01
mov edx, dword [ebp + 0xc]
add edx, 0x10
mov dword [ebp - 0x531c], edx
jmp 0x1037c0f
mov eax, dword [ebp + 0xc]
add eax, 0xe44
mov dword [ebp - 0x531c], eax
mov ecx, dword [ebp - 0x531c]
push ecx
lea edx, [ebp - 0x1e2c]
push edx
push 0x115
push 0
push 2
call fcn.01028fb0
add esp, 0x14
push 0x200
lea eax, [ebp - 0xe08]
push eax
push 0x114
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [ebp - 0x1e2c]
push edx
lea eax, [ebp - 0xe08]
push eax
push 0x200
lea ecx, [ebp - 0x1a90]
push ecx
call fcn.01011d00
add esp, 0x10
lea edx, [ebp - 0x1a90]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x162c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add eax, 1
mov ecx, 0x400
sub ecx, eax
cmp esi, ecx
jae 0x1037cb6
lea edx, [ebp - 0x1a90]
push edx
push 0x400
lea eax, [ebp - 0x162c]
push eax
call fcn.01010ee0
jmp 0x1037f1f
push 0x104ee20
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x24d0]
push edx
push 0x208
lea eax, [ebp - 0x22d0]
push eax
call fcn.01011d00
add esp, 0x14
push 0x800
lea ecx, [ebp - 0x52d8]
push ecx
lea edx, [ebp - 0x1c4c]
push edx
push 0x1002824
push 0x104d284
call fcn.01042360
add esp, 0x14
push eax
push 0x200
lea eax, [ebp - 0x46d8]
push eax
call fcn.01010390
push 0x800
lea ecx, [ebp - 0x52d8]
push ecx
lea edx, [ebp - 0x1c4c]
push edx
push 0x1002824
push 0x104d384
call fcn.01042360
add esp, 0x14
push eax
push 0x200
lea eax, [ebp - 0x4ad8]
push eax
call fcn.01010390
push 0x800
lea ecx, [ebp - 0x52d8]
push ecx
lea edx, [ebp - 0x22d0]
push edx
push 0x1002818
push 0x104d484
call fcn.01042360
add esp, 0x14
push eax
push 0x200
lea eax, [ebp - 0x42d8]
push eax
call fcn.01010390
lea ecx, [ebp - 0x1c4c]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x37dc], eax
jne 0x1037df4
mov edx, dword [ebp + 8]
push edx
push 1
mov eax, dword [ebp + 0xc]
add eax, 0x10
push eax
lea ecx, [ebp - 0x1e2c]
push ecx
push 0xc00000d5
mov edx, dword [ebp - 0x1e30]
push edx
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x42d8]
push ecx
lea edx, [ebp - 0x4ad8]
push edx
lea eax, [ebp - 0x46d8]
push eax
push 2
call fcn.01028540
add esp, 0x2c
test eax, eax
jne 0x1037ecb
cmp dword [ebp - 0x37dc], 0
je 0x1037e42
cmp dword [0x104e7b0], 0
je 0x1037e14
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x5320], ecx
jmp 0x1037e23
mov edx, dword [ebp + 0xc]
add edx, 0xe44
mov dword [ebp - 0x5320], edx
mov eax, dword [ebp - 0x5320]
push eax
lea ecx, [ebp - 0x1e2c]
push ecx
push 0x10b
push 0
push 3
call fcn.01028fb0
add esp, 0x14
push 0x200
lea edx, [ebp - 0xe08]
push edx
push 0x102
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x1e2c]
push ecx
lea edx, [ebp - 0xe08]
push edx
push 0x200
lea eax, [ebp - 0x1a90]
push eax
call fcn.01011d00
add esp, 0x10
lea ecx, [ebp - 0x1a90]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
lea edx, [ebp - 0x162c]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add eax, 1
mov ecx, 0x400
sub ecx, eax
cmp esi, ecx
jae 0x1037ec9
lea edx, [ebp - 0x1a90]
push edx
push 0x400
lea eax, [ebp - 0x162c]
push eax
call fcn.01010ee0
jmp 0x1037f1f
cmp dword [0x104e7b0], 0
je 0x1037ee2
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x5324], ecx
jmp 0x1037ef1
mov edx, dword [ebp + 0xc]
add edx, 0xe44
mov dword [ebp - 0x5324], edx
lea eax, [ebp - 0x1e2c]
push eax
mov ecx, dword [ebp - 0x5324]
push ecx
push 0x103
push 0
push 3
call fcn.01028fb0
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x348]
mov dword [ebp - 0xe14], eax
cmp dword [0x104e7b0], 0
je 0x1037f36
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x5328], ecx
jmp 0x1037f45
mov edx, dword [ebp + 0xc]
add edx, 0xe44
mov dword [ebp - 0x5328], edx
mov eax, dword [ebp - 0x5328]
push eax
push 0xb8
push 0
push 3
call fcn.01028fb0
add esp, 0x10
lea ecx, [ebp - 0x1690]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0101b320
add esp, 8
push 0x1002e74
mov eax, dword [ebp + 0xc]
add eax, 0x118
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1038081
push 0
push 0
call fcn.01041d00
add esp, 8
test eax, eax
je 0x1038081
lea ecx, [ebp - 0x162c]
push ecx
mov edx, dword [ebp - 0xe2c]
push edx
mov eax, dword [ebp - 0xe20]
push eax
mov ecx, dword [ebp - 0xe24]
push ecx
mov edx, dword [ebp - 0xe28]
push edx
lea eax, [ebp - 0x1690]
push eax
call fcn.0103d960
add esp, 0x18
test eax, eax
jne 0x1038081
cmp dword [0x104e7b0], 0
je 0x1037ff4
mov ecx, dword [ebp + 0xc]
add ecx, 0x10
mov dword [ebp - 0x532c], ecx
jmp 0x1038003
mov edx, dword [ebp + 0xc]
add edx, 0xe44
mov dword [ebp - 0x532c], edx
mov eax, dword [ebp - 0x532c]
push eax
push 0x127
push 0
push 1
call fcn.01028fb0
add esp, 0x10
push 0x200
lea ecx, [ebp - 0xe08]
push ecx
push 0x128
mov edx, dword [0x104ef34]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0xe08]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x162c]
push ecx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
add eax, 1
mov edx, 0x400
sub edx, eax
cmp esi, edx
jae 0x1038081
lea eax, [ebp - 0xe08]
push eax
push 0x400
lea ecx, [ebp - 0x162c]
push ecx
call fcn.01010ee0
cmp dword [ebp - 0x1ec0], 0
je 0x10380e7
cmp dword [0x104e7b0], 0
je 0x10380a1
mov edx, dword [ebp + 0xc]
add edx, 0x10
mov dword [ebp - 0x5330], edx
jmp 0x10380af
mov eax, dword [ebp + 0xc]
add eax, 0xe44
mov dword [ebp - 0x5330], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x34c]
push edx
mov eax, dword [ebp - 0x5330]
push eax
push 0xeb
push 0
push 2
call fcn.01028fb0
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0101b220
add esp, 8
mov dword [ebp - 0x26dc], eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret