Function at 0x111233b0
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.111d92c0
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x481c], eax
mov dword [ebp - 0x482c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.MSVCR100.dll_strrchr]
mov dword [ebp - 0x4820], eax
test ebx, ebx
je 0x11123402
push 0x5c
push ebx
call esi
add esp, 8
mov dword [ebp - 0x4818], eax
jmp 0x1112340c
mov dword [ebp - 0x4818], 0
call fcn.11123390
cmp dword [ebp - 0x4818], 0
mov edi, eax
mov dword [ebp - 0x4824], 0
jne 0x11123438
test ebx, ebx
je 0x11123438
push 0x2f
push ebx
call esi
add esp, 8
mov dword [ebp - 0x4818], eax
mov ecx, dword [ebp + 0x14]
mov eax, ecx
and eax, 0x10
mov dword [ebp - 0x4828], eax
jne 0x111234e2
test cl, 1
jne 0x111234e2
cmp dword [0x1127ed64], 0
je 0x111234e2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x1127ed64], 3
mov dword [ebp - 0x4828], eax
jge 0x11123dff
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x4828]
cmp eax, 0x3a98
jae 0x11123dff
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 [0x1127ed64], 3
jl 0x11123490
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
test cl, 4
jne 0x111234ed
inc dword [0x1127ed64]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
push eax
call esi
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 0x11123542
lea eax, [ebp - 0x274]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11123520
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 0x111236b8
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.111d9040
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 esp, [esp]
mov si, word [ecx + 2]
add ecx, 2
test si, si
jne 0x111235d0
mov esi, dword [str.__runTime]
mov dword [ecx], esi
mov esi, dword [0x11226a0c]
mov dword [ecx + 4], esi
mov esi, dword [0x11226a10]
mov dword [ecx + 8], esi
mov esi, dword [0x11226a14]
mov dword [ecx + 0xc], esi
mov esi, dword [0x11226a18]
push edi
mov dword [ecx + 0x10], esi
mov si, word [0x11226a1c]
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]
mov edi, dword [sym.imp.MSVCR100.dll_wcsncmp]
push 2
mov eax, esi
push 0x112269d4
push eax
call edi
add esp, 0x24
test eax, eax
jne 0x1112364a
lea esi, [ebp - 0xce]
push 3
push 0x112269cc
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x1112365e
add esi, 8
push 3
push 0x112269c4
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x11123672
add esi, 8
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11123676
lea edi, [ebp - 0x274]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x11123690
mov ebx, dword [ebp - 0x482c]
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 0x111236f9
lea ecx, [ebp - 0x274]
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x111236d7
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 - 0x4828], 0
mov edi, dword [ebp + 0x10]
jne 0x1112373a
mov edx, dword [ebp - 0x481c]
push edi
push ebx
push edx
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [ebp - 0x16e4]
push str.Assert__tid_x_thread_s_exp_s____hs:_d_n
push ecx
call esi
add esp, 0x1c
lea edx, [ebp - 0x16e4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x4818], 0
je 0x1112374b
inc dword [ebp - 0x4818]
jmp 0x11123751
mov dword [ebp - 0x4818], ebx
xor eax, eax
mov word [ebp - 0x2d4], ax
cmp dword [ebp - 0x4820], eax
je 0x1112377b
mov eax, dword [ebp - 0x4820]
push eax
push eax
lea ecx, [ebp - 0x2d4]
push str.__error_code__u__x_x_
push ecx
call esi
add esp, 0x10
mov eax, dword [ebp + 0x14]
and eax, 2
mov dword [ebp - 0x4820], eax
je 0x1112379f
mov edx, dword [ebp - 0x481c]
mov dword [ebp - 0x4824], edx
mov dword [ebp - 0x481c], str.Unhandled_Exception__GPF__n_n
mov eax, dword [ebp - 0x481c]
push eax
mov eax, dword [ebp - 0x4818]
push 0x111fa851
push 0x111fa863
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x2d4]
push edx
push edi
push eax
lea ecx, [ebp - 0x16e4]
push str.File__hs__line__d_s_s_n_nBuild:__hs___.17hs__n_nExpression:__s
push ecx
call esi
add esp, 0x24
push 0x104
lea edx, [ebp - 0x6e4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.MSVCR100.dll_wcsrchr]
lea eax, [ebp - 0x6e4]
push 0x5c
push eax
call edi
add eax, 2
lea edx, [ebp - 0x84]
add esp, 8
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x11123810
lea ecx, [ebp - 0x84]
push 0x2e
push ecx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x1112386f
lea eax, [ebp - 0x84]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11123840
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 0x11123860
call fcn.11123260
test eax, eax
jle 0x1112388e
push eax
lea edx, [esi + 2]
push 0x11226864
push edx
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 0x11123895
xor eax, eax
jmp 0x111238b0
movzx ecx, word [ebp + eax - 0x6e4]
mov word [ebp + eax - 0x4dc], cx
add eax, 2
test cx, cx
jne 0x111238b0
lea eax, [ebp - 0x4dc]
push 0x5c
push eax
call edi
lea edx, [eax + 2]
mov ecx, str.Support_
add esp, 8
mov dword [ebp - 0x482c], edx
sub edx, ecx
movzx eax, word [ecx]
mov word [ecx + edx], ax
add ecx, 2
test ax, ax
jne 0x111238e6
lea eax, [ebp - 0x84]
mov esi, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11123900
lea edi, [ebp - 0x4dc]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x11123916
mov ecx, eax
shr ecx, 2
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 0x1121ba28
push ecx
call dword [sym.imp.MSVCR100.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x111239fb
mov edx, dword [ebp - 0x482c]
lea eax, [ebp - 0x84]
mov ecx, eax
sub edx, ecx
nop
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x11123960
lea edx, [ebp - 0x4dc]
push 0x1121ba28
push edx
call dword [sym.imp.MSVCR100.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x111239fb
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 0x111239a4
lea edi, [ebp - 0x4dc]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x111239c0
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 0x1121ba28
push ecx
call dword [sym.imp.MSVCR100.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x11123c92
cmp dword [ebp - 0x4818], 0
je 0x11123c6c
lea edx, [ebp - 0x46f4]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x114
lea eax, [ebp - 0x4814]
push 0
push eax
call sub.MSVCR100.dll_memset
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, 0x1122683c
je 0x11123a55
mov eax, 0x11226834
mov edx, dword [ebp - 0x480c]
mov ecx, dword [ebp - 0x4810]
push edx
movzx edx, word [ebp - 0x46e6]
push ecx
movzx ecx, word [ebp - 0x46ea]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
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 edi
mov esi, dword [sym.imp.MSVCR100.dll_fputws]
lea ecx, [ebp - 0x46e4]
push ebx
push ecx
call esi
lea edx, [ebp - 0x16e4]
push ebx
push edx
call esi
add esp, 0x40
cmp dword [ebp - 0x4824], 0
je 0x11123ae3
mov eax, dword [ebp - 0x4824]
push ebx
push eax
call esi
add esp, 8
push ebx
push 0x112062b0
call esi
mov eax, dword [0x1127ed50]
add esp, 8
test eax, eax
je 0x11123c58
cmp dword [ebp - 0x4820], 0
jne 0x11123c58
test byte [ebp + 0x14], 0x20
jne 0x11123c58
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 esi
lea eax, [ebp - 0x36e4]
push ebx
push eax
call esi
xor esi, esi
add esp, 0x18
lea eax, [ebp - 0x36e4]
cmp word [ebp - 0x36e4], si
je 0x11123b6c
nop
cmp word [eax], 0xa
jne 0x11123b5c
inc esi
cmp esi, 6
je 0x11123b67
add eax, 2
cmp word [eax], 0
jne 0x11123b50
jmp 0x11123b6c
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x16e4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11123b75
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 edi
add esp, 0xc
cmp esi, 6
jl 0x11123bf3
lea eax, [ebp - 0x16e4]
add eax, 0xfffffffe
jmp 0x11123bb0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x11123bb0
mov ecx, dword [str._n..._more_]
mov edx, dword [0x1122677c]
mov dword [eax], ecx
mov ecx, dword [0x11226780]
mov dword [eax + 4], edx
mov edx, dword [0x11226784]
mov dword [eax + 8], ecx
mov ecx, dword [0x11226788]
mov dword [eax + 0xc], edx
mov dx, word [0x1122678c]
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 0x11123c00
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 0x11123c20
lea edi, [ebp - 0x16e4]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x11123c36
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.MSVCR100.dll_fputws]
push ebx
push 0x112232cc
call esi
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0xc
jmp 0x11123c92
test ebx, ebx
je 0x11123c92
mov eax, dword [ebp - 0x481c]
mov esi, dword [sym.imp.MSVCR100.dll_fputws]
push ebx
push eax
call esi
push ebx
push 0x112232cc
call esi
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
cmp dword [ebp - 0x4828], 0
jne 0x11123dff
test byte [ebp + 0x14], 1
jne 0x11123dff
mov esi, dword [ebp - 0x4824]
test esi, esi
je 0x11123ce8
lea eax, [ebp - 0x16e4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11123cc0
sub eax, edx
sar eax, 1
mov ecx, 0x7ff
sub ecx, eax
push ecx
lea edx, [ebp - 0x16e4]
push esi
push edx
call dword [sym.imp.MSVCR100.dll_wcsncat]
add esp, 0xc
xor eax, eax
cmp dword [ebp - 0x4820], eax
je 0x11123d20
jmp 0x11123d00
movzx ecx, word [eax + str.Unhandled_Exception__GPF___]
mov word [ebp + eax - 0x174], cx
add eax, 2
test cx, cx
jne 0x11123d00
jmp 0x11123d37
movzx ecx, word [eax + str.Assert_failed__]
mov word [ebp + eax - 0x174], cx
add eax, 2
test cx, cx
jne 0x11123d20
lea eax, [ebp - 0x4dc]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
mov edi, str.copied_to__s
test ebx, ebx
jne 0x11123d57
mov edi, str.NOT_copied_to_disk
lea ecx, [ebp - 0x174]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x11123d60
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 [0x1127ed60]
add esp, 0xc
test eax, eax
je 0x11123de7
push 0x111233a0
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.111d9022
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.111d9022
mov esp, ebp
pop ebp
ret