Function at 0x11015630
Capabilities:
Check for time delay via gettickcount
Check os version
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x484c
call fcn.11027e70
mov eax, dword [0x11064c1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x481c], eax
mov dword [ebp - 0x4828], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4820], eax
test esi, esi
je 0x11015681
push 0x5c
push esi
call fcn.11027960
add esp, 8
mov ecx, eax
mov dword [ebp - 0x4818], eax
jmp 0x11015689
xor ecx, ecx
mov dword [ebp - 0x4818], ecx
call fcn.11015550
mov edi, eax
mov dword [ebp - 0x482c], 0
test ecx, ecx
jne 0x110156b3
test esi, esi
je 0x110156b3
push 0x2f
push esi
call fcn.11027960
add esp, 8
mov dword [ebp - 0x4818], eax
mov ecx, dword [ebp + 0x14]
mov eax, ecx
and eax, 0x10
mov dword [ebp - 0x4824], eax
jne 0x11015756
test cl, 1
jne 0x11015756
cmp dword [0x1106861c], 0
je 0x11015756
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1106861c], 3
mov dword [ebp - 0x4824], eax
jge 0x1101608f
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x4824]
cmp eax, 0x3a98
jae 0x1101608f
push 0
push 0
push 0
lea ecx, [ebp - 0x4700]
push ecx
call esi
lea edx, [ebp - 0x4700]
push edx
call edi
lea eax, [ebp - 0x4700]
push eax
call ebx
cmp dword [0x1106861c], 3
jl 0x11015704
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.110278cd
mov esp, ebp
pop ebp
ret
test cl, 4
jne 0x11015761
inc dword [0x1106861c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebx
push eax
call ebx
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea ecx, [ebp - 0x274]
push str.__tid_u__x_x_
push ecx
call esi
add esp, 0x10
test edi, edi
je 0x110157b3
lea eax, [ebp - 0x274]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11015791
sub eax, edx
sar eax, 1
push edi
lea edx, [ebp + eax*2 - 0x274]
push str.__thread_s
push edx
call esi
add esp, 0xc
lea eax, [ebp - 0x4844]
push eax
lea ecx, [ebp - 0x484c]
push ecx
lea edx, [ebp - 0x483c]
push edx
lea eax, [ebp - 0x4834]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x1101592e
lea ecx, [ebp - 0x46ec]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x46ec]
sub ecx, dword [ebp - 0x4834]
mov eax, dword [ebp - 0x46e8]
sbb eax, dword [ebp - 0x4830]
push 0
push 0x989680
push eax
push ecx
call fcn.1102bdd0
xor edx, edx
mov ecx, 0x3c
div ecx
mov edi, edx
xor edx, edx
div ecx
mov ecx, 0x18
mov ebx, edx
xor edx, edx
div ecx
lea ecx, [ebp - 0x274]
add ecx, 0xfffffffe
lea ebx, [ebx]
mov si, word [ecx + 2]
add ecx, 2
test si, si
jne 0x11015840
mov esi, dword [str.__runTime]
mov dword [ecx], esi
mov esi, dword [0x11057aa4]
mov dword [ecx + 4], esi
mov esi, dword [0x11057aa8]
mov dword [ecx + 8], esi
mov esi, dword [0x11057aac]
mov dword [ecx + 0xc], esi
mov esi, dword [0x11057ab0]
push edi
mov dword [ecx + 0x10], esi
mov si, word [0x11057ab4]
push ebx
push edx
mov word [ecx + 0x14], si
push eax
lea esi, [ebp - 0xd4]
mov edx, esi
push str._ud__02uh__02um__02us
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 2
mov eax, esi
push 0x11057a6c
push eax
call fcn.1102920e
add esp, 0x24
test eax, eax
jne 0x110158b7
lea esi, [ebp - 0xce]
push 3
push 0x11057a64
push esi
call fcn.1102920e
add esp, 0xc
test eax, eax
jne 0x110158ce
add esi, 8
push 3
push 0x11057a5c
push esi
call fcn.1102920e
add esp, 0xc
test eax, eax
jne 0x110158e5
add esi, 8
mov eax, esi
mov edx, esi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x110158f0
lea edi, [ebp - 0x274]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x11015906
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.USER32.dll_GetGuiResources]
cmp eax, 0x2328
jl 0x11015972
lea ecx, [ebp - 0x274]
lea edi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x11015950
sub ecx, edi
push eax
sar ecx, 1
lea ecx, [ebp + ecx*2 - 0x274]
push str.__gdiHandles_d
push ecx
call esi
add esp, 0xc
cmp dword [ebp - 0x4824], 0
mov edi, dword [ebp + 0x10]
jne 0x110159b5
mov edx, dword [ebp - 0x4828]
mov eax, dword [ebp - 0x481c]
push edi
push edx
push eax
lea ecx, [ebp - 0x274]
push ecx
call ebx
push eax
lea edx, [ebp - 0x16e4]
push str.Assert__tid_x_thread_s_exp_s____hs:_d_n
push edx
call esi
add esp, 0x1c
lea eax, [ebp - 0x16e4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x4818], 0
je 0x110159c6
inc dword [ebp - 0x4818]
jmp 0x110159d2
mov ecx, dword [ebp - 0x4828]
mov dword [ebp - 0x4818], ecx
xor edx, edx
mov word [ebp - 0x2d4], dx
cmp dword [ebp - 0x4820], edx
je 0x110159fc
mov eax, dword [ebp - 0x4820]
push eax
push eax
lea eax, [ebp - 0x2d4]
push str.__error_code__u__x_x_
push eax
call esi
add esp, 0x10
mov eax, dword [ebp + 0x14]
and eax, 2
mov dword [ebp - 0x4820], eax
je 0x11015a20
mov ecx, dword [ebp - 0x481c]
mov dword [ebp - 0x482c], ecx
mov dword [ebp - 0x481c], str.Unhandled_Exception__GPF__n_n
mov edx, dword [ebp - 0x481c]
push edx
mov edx, dword [ebp - 0x4818]
push 0x11052b15
push 0x11052b27
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x2d4]
push ecx
push edi
push edx
lea eax, [ebp - 0x16e4]
push str.File__hs__line__d_s_s_n_nBuild:__hs___.17hs__n_nExpression:__s
push eax
call esi
add esp, 0x24
push 0x104
lea ecx, [ebp - 0x6e4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x6e4]
push 0x5c
push edx
call fcn.1102798d
add eax, 2
lea edx, [ebp - 0x84]
add esp, 8
sub edx, eax
jmp 0x11015a90
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x11015a90
lea eax, [ebp - 0x84]
push 0x2e
push eax
call fcn.1102798d
mov esi, eax
add esp, 8
test esi, esi
jne 0x11015aef
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11015ac0
sub eax, edx
sar eax, 1
lea esi, [ebp + eax*2 - 0x84]
mov eax, str..exe
mov edx, esi
sub edx, eax
nop
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x11015ae0
call fcn.11015420
test eax, eax
jle 0x11015b0e
push eax
lea ecx, [esi + 2]
push 0x11052e34
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea esi, [esi + eax*2]
mov eax, str..err
sub esi, eax
movzx ecx, word [eax]
mov word [eax + esi], cx
add eax, 2
test cx, cx
jne 0x11015b15
xor eax, eax
jmp 0x11015b30
movzx ecx, word [ebp + eax - 0x6e4]
mov word [ebp + eax - 0x4dc], cx
add eax, 2
test cx, cx
jne 0x11015b30
lea edx, [ebp - 0x4dc]
push 0x5c
push edx
call fcn.1102798d
add eax, 2
mov ecx, str.Support_
mov edx, eax
add esp, 8
mov dword [ebp - 0x4828], eax
sub edx, ecx
jmp 0x11015b70
movzx eax, word [ecx]
mov word [ecx + edx], ax
add ecx, 2
test ax, ax
jne 0x11015b70
lea eax, [ebp - 0x84]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11015b87
lea edi, [ebp - 0x4dc]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x11015ba0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x4dc]
and ecx, 3
push 0x110578f4
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.11029848
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x11015c8a
mov edx, dword [ebp - 0x4828]
lea eax, [ebp - 0x84]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x11015bf0
lea edx, [ebp - 0x4dc]
push 0x110578f4
push edx
call fcn.11029848
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x11015c8a
lea eax, [ebp - 0x4dc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x84]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11015c33
lea edi, [ebp - 0x4dc]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x11015c50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x4dc]
push 0x110578f4
push ecx
call fcn.11029848
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x11015f2d
cmp dword [ebp - 0x4818], 0
je 0x11015f08
lea edx, [ebp - 0x46f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x114
lea eax, [ebp - 0x4814]
push 0
push eax
call fcn.110278e0
add esp, 0xc
lea ecx, [ebp - 0x4814]
push ecx
mov dword [ebp - 0x4814], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x4804], 2
mov eax, 0x110578ec
je 0x11015ce4
mov eax, 0x110578e4
mov edx, dword [ebp - 0x480c]
mov ecx, dword [ebp - 0x4810]
push edx
movzx edx, word [ebp - 0x46e6]
push ecx
movzx ecx, word [ebp - 0x46ea]
push eax
movzx eax, word [ebp - 0x46e8]
push edx
movzx edx, word [ebp - 0x46ec]
push eax
movzx eax, word [ebp - 0x46ee]
push ecx
movzx ecx, word [ebp - 0x46f2]
push edx
movzx edx, word [ebp - 0x46f4]
push eax
push ecx
push edx
lea eax, [ebp - 0x46e4]
push str._04d__02d__02d__02d:_02d:_02d._03d__Win_s__d._d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x46e4]
push ebx
push ecx
call fcn.1102bd20
lea edx, [ebp - 0x16e4]
push ebx
push edx
call fcn.1102bd20
mov eax, dword [ebp - 0x482c]
add esp, 0x40
test eax, eax
je 0x11015d6e
push ebx
push eax
call fcn.1102bd20
add esp, 8
push ebx
push 0x11052ca8
call fcn.1102bd20
mov eax, dword [0x11068608]
add esp, 8
test eax, eax
je 0x11015ef2
cmp dword [ebp - 0x4820], 0
jne 0x11015ef2
test byte [ebp + 0x14], 0x20
jne 0x11015ef2
lea edx, [ebp - 0x36e4]
xor ecx, ecx
push 0x1000
push edx
mov word [ebp - 0x36e4], cx
call eax
push ebx
push str._nCallstack:_n
call fcn.1102bd20
lea eax, [ebp - 0x36e4]
push ebx
push eax
call fcn.1102bd20
xor esi, esi
add esp, 0x18
lea eax, [ebp - 0x36e4]
cmp word [ebp - 0x36e4], si
je 0x11015dff
cmp word [eax], 0xa
jne 0x11015def
inc esi
cmp esi, 6
je 0x11015dfa
add eax, 2
cmp word [eax], 0
jne 0x11015de3
jmp 0x11015dff
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x16e4]
lea edx, [eax + 2]
jmp 0x11015e10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11015e10
sub eax, edx
lea edx, [ebp - 0x36e4]
push edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x16e4]
push str._n_nCall_Stack:_n_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp esi, 6
jl 0x11015e93
lea eax, [ebp - 0x16e4]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x11015e50
mov ecx, dword [str._n..._more_]
mov edx, dword [0x1105782c]
mov dword [eax], ecx
mov ecx, dword [0x11057830]
mov dword [eax + 4], edx
mov edx, dword [0x11057834]
mov dword [eax + 8], ecx
mov ecx, dword [0x11057838]
mov dword [eax + 0xc], edx
mov dx, word [0x1105783c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea edi, [ebp - 0x16e4]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x11015ea0
mov ecx, 0xa
mov esi, str._n_nDetails_in_file:_n
lea eax, [ebp - 0x4dc]
rep movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11015ec0
lea edi, [ebp - 0x16e4]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x11015ed6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push 0x110577f8
call fcn.1102bd20
push ebx
call fcn.110292f8
add esp, 0xc
jmp 0x11015f2d
test ebx, ebx
je 0x11015f2d
mov eax, dword [ebp - 0x481c]
push ebx
push eax
call fcn.1102bd20
push ebx
push 0x110577f8
call fcn.1102bd20
push ebx
call fcn.110292f8
add esp, 0x14
cmp dword [ebp - 0x4824], 0
jne 0x1101608f
test byte [ebp + 0x14], 1
jne 0x1101608f
mov esi, dword [ebp - 0x482c]
test esi, esi
je 0x11015f7e
lea eax, [ebp - 0x16e4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11015f57
sub eax, edx
sar eax, 1
mov ecx, 0x7ff
sub ecx, eax
push ecx
lea edx, [ebp - 0x16e4]
push esi
push edx
call fcn.1102bcdc
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x4820], eax
je 0x11015fb0
jmp 0x11015f90
movzx ecx, word [eax + str.Unhandled_Exception__GPF___]
mov word [ebp + eax - 0x174], cx
add eax, 2
test cx, cx
jne 0x11015f90
jmp 0x11015fc7
movzx ecx, word [eax + str.Assert_failed__]
mov word [ebp + eax - 0x174], cx
add eax, 2
test cx, cx
jne 0x11015fb0
lea eax, [ebp - 0x4dc]
push 0x5c
push eax
call fcn.1102798d
add esp, 8
mov edi, str.copied_to__s
test ebx, ebx
jne 0x11015fe6
mov edi, str.NOT_copied_to_disk
lea ecx, [ebp - 0x174]
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x11015ff0
sub ecx, esi
add eax, 2
push eax
sar ecx, 1
lea ecx, [ebp + ecx*2 - 0x174]
push edi
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x11068618]
add esp, 0xc
test eax, eax
je 0x11016077
push 0x11015600
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
push 0
lea edx, [ebp - 0x174]
mov esi, eax
push edx
lea eax, [ebp - 0x16e4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
push 1
push 0x12
push 0x12
push 0
lea ecx, [ebp - 0x4700]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.110278cd
mov esp, ebp
pop ebp
ret
push 0
lea edx, [ebp - 0x174]
push edx
lea eax, [ebp - 0x16e4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.110278cd
mov esp, ebp
pop ebp
ret