Function at 0x10047a40
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x100ae8c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x1f0
lea eax, [ebp - 0x2a8]
push 0
push eax
mov dword [ebp - 0x2ac], 0xffff6059
call sub.MSVCR100.dll_memset
mov esi, dword [0x2fb6ac4]
add esp, 0xc
test esi, esi
je 0x10048071
fld dword [esi + 0x1f68]
push ebx
push edi
call fcn.100867a0
fld dword [esi + 0x1f60]
lea ecx, [ebp - 0x38]
push 0xa
push ecx
mov edi, eax
call fcn.100867a0
mov esi, dword [sym.imp.MSVCR100D.dll__itoa]
push eax
call esi
push 0xa
lea edx, [ebp - 0x44]
push edx
push edi
call esi
mov eax, 0x34d18e8
add esp, 0x18
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10047ac0
lea edi, [ebp - 0x2ac]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10047ad2
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 edi, [ebp - 0x2ac]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10047af0
mov bx, word [0x10097d60]
lea eax, [ebp - 0x38]
mov word [edi], bx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10047b07
lea edi, [ebp - 0x2ac]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10047b20
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 edi, [ebp - 0x2ac]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10047b40
mov ax, word [0x10097d5c]
mov word [edi], ax
lea eax, [ebp - 0x44]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047b56
lea edi, [ebp - 0x2ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10047b66
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 edi, [ebp - 0x2ac]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10047b85
push 0xa
lea ecx, [ebp - 0x50]
mov word [edi], bx
mov edx, dword [0x2f91a04]
push ecx
push edx
call dword [sym.imp.MSVCR100D.dll__itoa]
lea eax, [ebp - 0x50]
add esp, 0xc
mov ecx, eax
jmp 0x10047bb0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10047bb0
lea edi, [ebp - 0x2ac]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10047bc2
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 edi, [ebp - 0x2ac]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10047be0
mov ax, word [0x10097d60]
mov word [edi], ax
mov ecx, dword [0x2f98ca8]
inc ecx
push ecx
push 0x2f98cb0
lea edx, [ebp - 0x2e0]
push 0x1009ee44
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x2e0]
add esp, 0x10
mov ecx, eax
jmp 0x10047c20
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10047c20
lea edi, [ebp - 0x2ac]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10047c32
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 edi, [ebp - 0x2ac]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10047c50
mov ax, word [0x10097d60]
mov word [edi], ax
mov eax, dword [0x2f9a2a8]
add eax, 0x53c
mov dword [ebp - 0x34c], eax
mov dword [ebp - 0x348], 8
jmp 0x10047c80
mov esi, dword [eax]
test esi, esi
je 0x10047f1d
lea ecx, [ebp - 0x84]
push ecx
push esi
call fcn.1001acb0
mov eax, dword [esi + 0xd6c]
mov ecx, dword [esi + 0xd68]
push 0xa
lea edx, [ebp - 0xb8]
push edx
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__i64toa]
mov edx, dword [esi + 0xd54]
add esp, 0x18
cmp edx, 5
ja 0x10047e93
movzx ecx, byte [esi + 0xb0]
movzx ebx, byte [esi + 0xb4]
movzx edi, byte [esi + 0xac]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
test ecx, ecx
jne 0x10047d07
test edx, edx
je 0x10047e93
cmp edi, 1
jne 0x10047d1a
mov dx, word [0x1009ee40]
mov al, byte [0x1009ee42]
jmp 0x10047d39
cmp edi, 2
jne 0x10047d2d
mov dx, word [0x1009ee3c]
mov al, byte [0x1009ee3e]
jmp 0x10047d39
mov dx, word [0x1009b268]
mov al, byte [0x1009b26a]
mov word [ebp - 0x2c], dx
mov byte [ebp - 0x2a], al
cmp ecx, 1
jne 0x10047d5e
mov cx, word [0x10095590]
mov dl, byte [0x10095592]
mov word [ebp - 0x18], cx
mov byte [ebp - 0x16], dl
jmp 0x10047e5a
cmp ecx, 2
jne 0x10047d74
mov ax, word [0x1009558c]
mov cl, byte [0x1009558e]
jmp 0x10047e53
cmp ecx, 3
jne 0x10047d91
mov dx, word [0x10095588]
mov al, byte [0x1009558a]
mov word [ebp - 0x18], dx
mov byte [ebp - 0x16], al
jmp 0x10047e5a
cmp ecx, 4
jne 0x10047daf
mov cx, word [0x10095584]
mov dl, byte [0x10095586]
mov word [ebp - 0x18], cx
mov byte [ebp - 0x16], dl
jmp 0x10047e5a
cmp ecx, 5
jne 0x10047dc5
mov ax, word [0x10095580]
mov cl, byte [0x10095582]
jmp 0x10047e53
cmp ecx, 0xb
jne 0x10047ddf
mov dx, word [0x1009557c]
mov al, byte [0x1009557e]
mov word [ebp - 0x18], dx
mov byte [ebp - 0x16], al
jmp 0x10047e5a
cmp ecx, 0xc
jne 0x10047dfa
mov cx, word [0x1009ee38]
mov dl, byte [0x1009ee3a]
mov word [ebp - 0x18], cx
mov byte [ebp - 0x16], dl
jmp 0x10047e5a
cmp ecx, 0xd
jne 0x10047e0d
mov ax, word [0x10095574]
mov cl, byte [0x10095576]
jmp 0x10047e53
cmp ecx, 0xe
jne 0x10047e27
mov dx, word [0x10095570]
mov al, byte [0x10095572]
mov word [ebp - 0x18], dx
mov byte [ebp - 0x16], al
jmp 0x10047e5a
cmp ecx, 0x10
jne 0x10047e42
mov cx, word [0x1009556c]
mov dl, byte [0x1009556e]
mov word [ebp - 0x18], cx
mov byte [ebp - 0x16], dl
jmp 0x10047e5a
cmp ecx, 0x11
jne 0x10047e5a
mov ax, word [0x10095568]
mov cl, byte [0x1009556a]
mov byte [ebp - 0x16], cl
mov word [ebp - 0x18], ax
mov ecx, dword [esi + 0xd4c]
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0xb8]
push eax
push ecx
add esi, 0x64
push esi
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
push ebx
lea ecx, [ebp - 0x344]
push str.__d_s_s__s
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x24
jmp 0x10047eed
cmp edx, 9
jne 0x10047ebf
mov ecx, dword [esi + 0xd4c]
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0xb8]
push eax
push ecx
add esi, 0x64
push esi
push 0x1009ee0c
lea edx, [ebp - 0x344]
push edx
jmp 0x10047ee4
mov edx, dword [esi + 0xd4c]
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xb8]
push ecx
push edx
add esi, 0x64
push esi
push 0x1009edfc
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
lea eax, [ebp - 0x344]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047ef5
lea edi, [ebp - 0x2ac]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10047f05
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 eax, dword [ebp - 0x34c]
add eax, 4
dec dword [ebp - 0x348]
mov dword [ebp - 0x34c], eax
jne 0x10047c80
lea eax, [ebp - 0x2a8]
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10047f43
sub eax, esi
mov dword [ebp - 0x348], eax
je 0x10047f7f
jmp 0x10047f60
xor byte [ebp + ecx - 0x2a8], 0xf
lea eax, [ebp - 0x2a8]
inc ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10047f72
sub eax, esi
cmp ecx, eax
jb 0x10047f60
lea eax, [ebp - 0x2a8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047f88
sub eax, edx
mov word [ebp - 0x2aa], ax
lea ecx, [ebp - 0x2a8]
mov eax, 0x1012d574
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10047fc3
test dl, dl
je 0x10047fbf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10047fc3
add eax, 2
add ecx, 2
test dl, dl
jne 0x10047fa3
xor eax, eax
jmp 0x10047fc8
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
jne 0x10047fe5
call esi
sub eax, dword [0x101b8ce0]
cmp eax, 0x6ddd00
jbe 0x1004806f
mov eax, 0x1012d570
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047ff0
sub eax, edx
je 0x10048032
mov eax, 0x1012d574
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10048003
sub eax, edx
mov bl, 0x2b
cmp byte [eax + 0x1012d573], bl
jne 0x10048032
lea eax, [ebp - 0x2a8]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10048020
sub eax, edx
cmp byte [ebp + eax - 0x2a9], bl
je 0x1004806f
push 0x1f4
lea ecx, [ebp - 0x2ac]
push ecx
push 0x1012d570
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
push 0
push 0
push 0
push 0x10047a10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [0x101b8ce0], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10086738
mov esp, ebp
pop ebp
ret