Function at 0x100d6d30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1020aebc
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x2c]
mov edi, ecx
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x34]
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x58], ecx
mov ecx, dword [eax + 0x30]
push ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x54], edx
call fcn.10203b14
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
cmp esi, ebx
jne 0x100d6dba
push str.READDATA:_Out_Of_Memory
push edi
mov dword [edi + 0x14], 1
call fcn.100d2d10
add esp, 8
cmp dword [ebp + 0x24], 0x10
jb 0x100d747e
mov edx, dword [ebp + 0x10]
push edx
jmp 0x100d7476
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.10203b14
add esp, 4
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x100d6dfe
push str.READDATA:_Out_of_memory
push edi
mov dword [edi + 0x14], 1
call fcn.100d2d10
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0xc
cmp dword [ebp + 0x24], 0x10
jb 0x100d747e
mov edx, dword [ebp + 0x10]
push edx
jmp 0x100d7476
cmp byte [edi + 0x10], 4
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x38], ebx
jne 0x100d6ef6
push 0x4c
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x100d6e39
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + 0x30]
push edx
mov ecx, eax
call fcn.100d4480
mov ebx, eax
jmp 0x100d6e3b
xor ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x100d6ebf
cmp dword [ebx], 0
je 0x100d6ebf
or eax, 0xffffffff
cmp dword [ebx + 0x44], eax
je 0x100d6ebf
cmp dword [ebx + 0x48], eax
je 0x100d6ebf
mov eax, dword [edi + 0x28]
push 0
push 0
push ebx
push 0x100d2bb0
push 0
push 0
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
jne 0x100d6ef6
push str.READDATA:_Fail_to_create_a_hash_thread
push edi
mov dword [edi + 0x14], 1
call fcn.100d2d10
add esp, 8
mov ecx, ebx
call fcn.100d33b0
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov ecx, dword [ebp - 0x34]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.101d8f40
jmp 0x100d747e
push str.READDATA:_Out_Of_Memory
push edi
mov dword [edi + 0x14], 1
call fcn.100d2d10
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp - 0x34]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x10
cmp dword [ebp + 0x24], 0x10
jb 0x100d747e
mov eax, dword [ebp + 0x10]
push eax
jmp 0x100d7476
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x100d6f19
mov ecx, eax
call fcn.100cb630
mov ebx, eax
mov dword [ebp - 0x5c], eax
jmp 0x100d6f1e
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 0
test ebx, ebx
jne 0x100d6f40
push str.READDATA:_Out_of_memory
push edi
mov dword [edi + 0x14], 1
call fcn.100d2d10
add esp, 8
jmp 0x100d73ab
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x100d6f4c
lea eax, [ebp + 0x10]
push 0x80
push 3
push 1
push SysReAllocString
push eax
mov ecx, ebx
call fcn.100cb890
mov byte [ebp - 0x2d], al
cmp al, 1
je 0x100d6f83
push str.READDATA:_Open_file_error
push edi
mov dword [edi + 0x14], 0x10
call fcn.100d2d10
add esp, 8
jmp 0x100d722e
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 0x40]
xor esi, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call edx
mov byte [ebp - 0x2d], al
cmp al, 1
je 0x100d6fb9
push str.READDATA:_Get_file_size_error
push edi
mov dword [edi + 0x14], 0x12
call fcn.100d2d10
add esp, 8
jmp 0x100d722e
mov eax, dword [edi + 0x34]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp + 8]
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edx
call fcn.10204210
or ecx, ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
je 0x100d6fe5
add eax, 1
adc edx, esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], esi
cmp dword [edi + 0x14], ebx
jne 0x100d722e
jmp 0x100d700c
mov esi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
cmp byte [ebp - 0x2d], 1
jne 0x100d722e
cmp esi, edx
jg 0x100d722e
jl 0x100d7028
cmp ebx, eax
jae 0x100d722e
sub eax, 1
mov ecx, edx
sbb ecx, 0
cmp ebx, eax
jne 0x100d704f
cmp esi, ecx
jne 0x100d704f
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
jmp 0x100d7079
mov eax, dword [edi + 0x34]
mov esi, dword [eax + 0x30]
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x78], eax
cmp eax, ecx
jl 0x100d7073
jg 0x100d7068
cmp esi, dword [ebp - 0x40]
jbe 0x100d7073
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
jmp 0x100d7079
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
push esi
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x78]
add esp, 0xc
lea ebx, [edi + 0x14]
push ebx
push ecx
push edx
push esi
sub esp, 0x1c
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x88], esp
push eax
call fcn.100034e0
mov ecx, dword [edi + 0x34]
call fcn.100d50a0
mov byte [ebp - 0x2d], al
cmp al, 1
je 0x100d70ce
mov ecx, dword [ebx]
push ecx
push str.READDATA:_Read_raw_data_fail_code__d
push edi
call fcn.100d2d10
add esp, 0xc
jmp 0x100d721c
mov edx, dword [ebp - 0x34]
push esi
push 0
push edx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add esp, 0xc
push 0
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x34]
push edx
call eax
mov byte [ebp - 0x2d], al
cmp al, 1
jne 0x100d7208
mov eax, dword [ebp - 0x50]
xor ecx, ecx
cmp dword [ebp - 0x4c], eax
jne 0x100d7208
cmp dword [ebp - 0x48], ecx
jne 0x100d7208
mov al, byte [edi + 0x10]
cmp al, 4
jne 0x100d71a7
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x48]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100d7153
push str.READDATA:_Wait_for_hash_update_fail
push edi
mov dword [edi + 0x14], 0x11
call fcn.100d2d10
mov byte [ebp - 0x2d], 0
jmp 0x100d7219
lea eax, [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx]
push esi
push edx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea eax, [ebx + 0x2c]
push eax
mov dword [ebx + 4], esi
mov byte [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x4c]
sub dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x78]
sbb dword [ebp - 0x3c], edx
sub dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x68]
sbb dword [ebp - 0x54], ecx
add dword [eax], esi
adc dword [eax + 4], ecx
jmp 0x100d721c
cmp al, 0xff
je 0x100d7188
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
mov eax, esi
cmp esi, 4
jb 0x100d71cc
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x100d71f0
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x100d71b8
test eax, eax
je 0x100d7188
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x100d71f0
cmp eax, 1
jbe 0x100d7188
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x100d71f0
cmp eax, 2
jbe 0x100d7188
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
je 0x100d7188
push str.READDATA:_Incurrpt_data_fail
push edi
mov dword [edi + 0x14], 0x13
call fcn.100d2d10
mov byte [ebp - 0x2d], 0
jmp 0x100d7219
push str.READDATA:_Read_original_file_fail
push edi
mov dword [ebx], 0x11
call fcn.100d2d10
add esp, 8
add dword [ebp - 0x64], 1
adc dword [ebp - 0x60], 0
cmp dword [edi + 0x14], 0
je 0x100d7000
cmp byte [edi + 0x10], 4
jne 0x100d7394
cmp dword [edi + 0x14], 0
jne 0x100d7348
cmp byte [ebp - 0x2d], 1
jne 0x100d7348
mov esi, dword [ebp - 0x38]
mov eax, dword [esi + 0x48]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100d7280
push str.READDATA:_Wait_for_hash_update_fail
push edi
mov dword [edi + 0x14], 0x13
call fcn.100d2d10
add esp, 8
mov byte [ebp - 0x2d], 0
jmp 0x100d734b
lea ebx, [esi + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov byte [esi + 0x24], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x48]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100d72cd
push str.READDATA:_Wait_for_hash_done_fail
push edi
mov dword [edi + 0x14], 0x13
call fcn.100d2d10
add esp, 8
mov byte [ebp - 0x2d], 0
jmp 0x100d734b
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0x10
jb 0x100d72df
mov eax, dword [esi + 8]
jmp 0x100d72e2
lea eax, [esi + 8]
push eax
push str.READDATA:_Digest__s
push edi
call fcn.100d2d10
sub esp, 0x10
lea eax, [esi + 8]
mov ecx, esp
mov dword [ebp - 0x88], esp
push eax
call fcn.100034e0
sub esp, 0x1c
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x68], esp
push eax
mov byte [ebp - 4], 3
call fcn.100034e0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.100d3740
test al, al
jne 0x100d733f
push str.READDATA:_Incurrpt_data_fail
push edi
mov dword [edi + 0x14], 0x13
call fcn.100d2d10
add esp, 8
mov byte [ebp - 0x2d], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100d734b
mov esi, dword [ebp - 0x38]
lea ebx, [esi + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov byte [esi + 0x24], 3
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [ebp - 0x74]
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100d738d
push str.READDATA:_Wraning_fail_to_end_thread
push edi
call fcn.100d2d10
add esp, 8
jmp 0x100d7394
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x5c]
mov ecx, esi
call fcn.100cb650
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov ebx, dword [ebp - 0x38]
xor esi, esi
add esp, 8
cmp ebx, esi
je 0x100d73d6
mov ecx, ebx
call fcn.100d33b0
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [edi + 0x14], esi
lea eax, [edi + 0x14]
jne 0x100d746c
cmp byte [ebp - 0x2d], 1
jne 0x100d746c
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov ecx, dword [edi + 0x30]
push eax
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.100d59d0
cmp al, 1
je 0x100d744d
push str.READDATA:_Read_validation_response_fail
push edi
call fcn.100d2d10
add esp, 8
lea ecx, [ebp - 0x84]
call fcn.100ae250
lea ecx, [ebp - 0x2c]
call fcn.101d8f40
lea ecx, [ebp + 0x10]
call fcn.101d8f40
jmp 0x100d747e
lea ecx, [ebp - 0x84]
call fcn.100ae250
lea ecx, [ebp - 0x2c]
call fcn.101d8f40
lea ecx, [ebp + 0x10]
call fcn.101d8f40
mov al, 1
jmp 0x100d7480
cmp dword [ebp + 0x24], 0x10
jb 0x100d747e
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0x28