Function at 0x10005110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x100054e2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100054e2
cmp eax, 0x19
jbe 0x100054e2
sub eax, 0x19
mov edi, 0
mov dword [ebp + 0xc], eax
mov dword [esp + 0xc], edi
je 0x100054e2
mov eax, 0xd
sub eax, ebx
mov dword [esp + 0x14], eax
mov edi, edi
mov esi, dword [sym.imp.MSVCRT.dll_isdigit]
lea eax, [edi + ebx]
mov dword [esp + 0x10], eax
movsx eax, byte [eax]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx ecx, byte [ebx + edi + 1]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx edx, byte [ebx + edi + 2]
push edx
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx eax, byte [ebx + edi + 3]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx ecx, byte [ebx + edi + 4]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx edx, byte [ebx + edi + 5]
push edx
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx eax, byte [ebx + edi + 6]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx ecx, byte [ebx + edi + 7]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx edx, byte [ebx + edi + 8]
push edx
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx eax, byte [ebx + edi + 9]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx ecx, byte [ebx + edi + 0xa]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx edx, byte [ebx + edi + 0xb]
push edx
call esi
add esp, 4
test eax, eax
je 0x100054d4
movsx eax, byte [ebx + edi + 0xc]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d4
mov edi, dword [esp + 0x14]
add edi, dword [esp + 0x10]
lea ebx, [ebx]
movsx eax, byte [edi + ebx]
push eax
call esi
add esp, 4
test eax, eax
jne 0x10005288
cmp byte [edi + ebx], 0x3d
jne 0x100054d0
cmp byte [edi + ebx], 0x3d
je 0x10005291
inc edi
jmp 0x10005270
movsx ecx, byte [edi + ebx + 1]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx edx, byte [ebx + edi + 2]
push edx
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx eax, byte [ebx + edi + 3]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx ecx, byte [ebx + edi + 4]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx edx, byte [ebx + edi + 5]
push edx
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx eax, byte [ebx + edi + 6]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx ecx, byte [ebx + edi + 7]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx edx, byte [ebx + edi + 8]
push edx
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx eax, byte [ebx + edi + 9]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx ecx, byte [ebx + edi + 0xa]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx edx, byte [ebx + edi + 0xb]
push edx
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx eax, byte [ebx + edi + 0xc]
push eax
call esi
add esp, 4
test eax, eax
je 0x100054d0
movsx ecx, byte [ebx + edi + 0xd]
push ecx
call esi
add esp, 4
test eax, eax
je 0x100054d0
lea esi, [edi + 1]
sub esi, dword [esp + 0xc]
lea edx, [esp + 0x28]
push esi
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x1c]
add esp, 0xc
dec esi
push esi
push eax
lea ecx, [esp + 0x30]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea esi, [esp + 0x28]
call fcn.10019180
test eax, eax
je 0x100054d0
mov dx, word [edi + ebx + 1]
xor eax, eax
mov word [esp + 0x28], ax
mov byte [esp + 0x2a], al
mov eax, esi
push eax
mov word [esp + 0x2c], dx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
lea ecx, [esp + 0x18]
push ecx
lea esi, [eax + 0x7d0]
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [esp + 0x18]
cmp esi, edx
jl 0x100054d0
xor eax, eax
mov cl, byte [eax + 0x1005ae00]
mov byte [esp + eax + 0x130], cl
inc eax
test cl, cl
jne 0x10005402
push 0x1005e69c
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005e69c
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005426
lea edi, [esp + 0x130]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10005437
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x130]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10005455
mov ecx, dword [str.data.txt]
mov edx, dword [0x10046640]
mov dword [eax], ecx
mov cl, byte [0x10046644]
mov dword [eax + 4], edx
lea esi, [esp + 0x130]
mov byte [eax + 8], cl
call fcn.10005b50
mov edx, dword [ebp + 0xc]
push edx
push ebx
mov eax, esi
call fcn.10005550
push 0
push 0
push 0
push 0x100050f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100054d0
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100054d0
test byte [esp + 0x10], 2
jne 0x100054d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xc]
inc edi
mov dword [esp + 0xc], edi
cmp edi, dword [ebp + 0xc]
jb 0x10005160
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8