Function at 0x10056af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10146aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
push ecx
lea edx, [esp + 0x30]
xor edi, edi
push edx
mov ecx, esi
mov dword [esp + 0x20], edi
call eax
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
push esi
lea edx, [esp + 0x2c]
mov dword [ecx + 0xc], eax
call fcn.1004cee0
test eax, eax
jne 0x10056b74
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x18]
mov ecx, str.Parts
call fcn.1007da90
mov esi, eax
cmp esi, edi
je 0x10056ce9
call fcn.10060ad0
mov dword [esp + 0x24], eax
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x24]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x24]
mov dword [eax], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 8], eax
mov dword [esp + 0x28], edi
mov ecx, str.Part
mov eax, esi
mov dword [esp + 0x48], edi
call fcn.1007da90
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x18], ebx
je 0x10056c3b
jmp 0x10056bd6
mov ebx, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], edi
lea edi, [ebx + 0x2c]
mov esi, str.Signature
call fcn.1007f080
test eax, eax
je 0x10056c27
mov eax, dword [eax + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea esi, [eax + 8]
push 0x10153f8c
push esi
call dword [sym.imp.MSVCR80.dll_sscanf_s]
add esp, 0xc
test esi, esi
je 0x10056c27
cmp dword [esp + 0x14], 0
je 0x10056c27
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
lea ebx, [esp + 0x28]
call fcn.1005be50
mov ebx, dword [esp + 0x18]
mov ecx, str.Part
mov eax, ebx
call fcn.1007dad0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10056bd0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x10056c4c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x10056c5a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push esi
push ebx
push edi
push ebx
lea ecx, [esp + 0x28]
push ecx
call fcn.100793f0
mov eax, dword [esp + 0x28]
mov ecx, ebx
call fcn.1005d6f0
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
jbe 0x10056c85
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov byte [esp + 0x18], 0
mov edi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
push edi
push ebx
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov esi, ecx
lea edx, [esp + 0x38]
push esi
push edx
call fcn.10061b70
add esp, 0x28
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
push eax
mov ecx, esi
push ecx
push edx
push esi
lea eax, [esp + 0x28]
push eax
mov edi, esi
call fcn.1005ef00
mov ecx, dword [esp + 0x24]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8