Function at 0x10077b00
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1013e9e6
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x10170024]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], 1
call edx
mov ebx, dword [esi]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esi + 4]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0xcc]
call eax
cmp eax, 0xffffffff
je 0x10077d98
mov ecx, dword [edi + 0x1c]
mov esi, dword [ebp + 0x10]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0xdc]
call eax
test eax, 0xffff
jne 0x10077d98
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.MSVCR80.dll__time64]
lea edx, [esp + 0x70]
add esp, 4
push edx
call dword [sym.imp.MSVCR80.dll__gmtime64]
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
add esp, 4
call edx
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
mov eax, dword [edi + 0x1c]
mov ebx, dword [eax]
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xe0]
add esp, 4
add ebx, 0xe4
call eax
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebx]
push eax
push esi
call edx
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
call edx
call fcn.10060720
mov dword [esp + 0x28], eax
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xc0], ebx
call fcn.10060720
mov dword [esp + 0x1c], eax
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov dword [esp + 0x20], ebx
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x64]
mov byte [esp + 0xc4], 1
push edx
lea ebx, [esp + 0x20]
mov dword [esp + 0x44], eax
call fcn.1005bd70
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
call edx
test eax, eax
jbe 0x10077d1e
mov ebx, esi
mov dword [esp + 0x14], esi
mov edi, edi
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [ebx]
mov eax, dword [eax + 0xec]
push 0
push edx
call eax
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
mov dword [esp + 0x34], esi
call eax
mov ecx, eax
mov eax, dword [ebx]
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x40], ecx
jne 0x10077db2
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0xa0]
push edx
lea ebx, [esp + 0x2c]
mov dword [esp + 0x48], eax
call fcn.1005bd70
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [edi + 0x1c]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe0]
add esi, 1
add ebx, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x14], ebx
call edx
cmp esi, eax
jb 0x10077ca0
xor ebx, ebx
mov eax, dword [ebp + 0x1c]
cmp eax, dword [esp + 0x2c]
je 0x10077e71
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x70]
push ecx
mov edi, esi
call fcn.1005ebe0
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov edx, dword [eax]
push edx
mov esi, ecx
push esi
lea eax, [esp + 0x70]
push eax
mov edi, ecx
call fcn.1005ebe0
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp ecx, 0xffffffff
je 0x10077cec
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
lea ebx, [esp + 0x18]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
lea ecx, [ecx]
test ebx, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
je 0x10077de4
lea edx, [esp + 0x18]
cmp ebx, edx
je 0x10077dea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x5c], eax
je 0x10077cec
test ebx, ebx
jne 0x10077e02
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [ebx + 4]
jne 0x10077e11
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
cmp edx, dword [eax + 0xc]
jne 0x10077e5b
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xac]
push ecx
lea ebx, [esp + 0x2c]
mov dword [esp + 0x4c], edx
call fcn.1005bd70
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ebx, [esp + 0x20]
mov dword [esp + 0x4c], eax
call fcn.1005bd70
lea esi, [esp + 0x58]
call fcn.1005ed90
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x34]
jmp 0x10077dd0
mov edx, dword [esp + 0x28]
mov ebx, dword [edx]
lea esi, [esp + 0x24]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
test esi, esi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], eax
je 0x10077e97
lea ecx, [esp + 0x24]
cmp esi, ecx
je 0x10077e9d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x64]
je 0x10078061
test esi, esi
jne 0x10077eb1
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x10077ebc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebx + 0xc]
mov edx, dword [edx + 0xec]
push 0
push eax
call edx
mov esi, eax
xor eax, eax
mov word [esp + 0x48], 0
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov word [esp + 0x56], ax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
mov dword [esp + 0x18], esi
call edx
test eax, eax
jne 0x1007802f
movzx ecx, word [esp + 0x52]
movzx edx, word [esp + 0x54]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
movzx eax, word [esp + 0x50]
mov dword [esp + 0x80], eax
movzx eax, word [esp + 0x48]
mov dword [esp + 0x7c], ecx
movzx ecx, word [esp + 0x4a]
sub eax, 0x76c
sub ecx, 1
mov dword [esp + 0x78], edx
movzx edx, word [esp + 0x4e]
mov dword [esp + 0x8c], eax
movzx eax, word [esp + 0x4c]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x94], eax
call dword [sym.imp.MSVCR80.dll__mktime64]
add esp, 4
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push edx
push eax
call dword [sym.imp.MSVCR80.dll__difftime64]
add esp, 0x10
call fcn.10139ef6
push 0
push 0x15180
push edx
push eax
call fcn.10139e10
mov esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov ecx, dword [esp + 0x34]
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, dword [esp + 0x38]
cmp edx, dword [ecx + 4]
jne 0x10078001
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0xc], eax
je 0x1007804e
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x10078019
cmp esi, dword [ebp + 0x14]
jmp 0x10078026
cmp eax, 1
jne 0x10078023
cmp ebx, dword [ebp + 0x14]
jmp 0x10078026
cmp edi, dword [ebp + 0x14]
jl 0x1007804e
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x14]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea esi, [esp + 0x34]
call fcn.1005ed90
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x10077e83
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x30], 0
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x70]
push ecx
mov edi, esi
call fcn.1005ebe0
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
xor eax, eax
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
mov esi, ecx
push esi
lea eax, [esp + 0x70]
push eax
mov edi, ecx
call fcn.1005ebe0
mov ecx, dword [esp + 0x28]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x34]
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c