Function at 0x404310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov dword [esp + 0x1c], edx
mov ebx, ecx
mov edi, dword [ebp + 0x28]
mov ecx, edi
mov edx, 0x38
call fcn.00403b70
test al, al
je 0x404451
mov dword [esp + 0x7c], 0x38
mov dword [esp + 0x68], 0x407175
mov dword [esp + 0x6c], 0
sub esp, 0xc
movsd xmm0, qword [esp + 0x74]
movsd qword [esp + 4], xmm0
mov dword [esp], 0x38
mov ecx, edi
call fcn.004066f6
mov edi, eax
mov esi, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0x38]
movsd qword [esp], xmm0
lea eax, [esp + 0x90]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xa
call fcn.00406606
add esp, 0x10
test al, al
je 0x404462
call fcn.00406660
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], ebx
sub esp, 0x10
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.004066c6
add esp, 0x10
mov ebx, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, 0x12
ja 0x404798
mov ecx, ebx
push 0x13
push str.invalid_timestamp_
call fcn.0040658e
mov ebx, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, esi
jb 0x4047bf
test esi, esi
je 0x40442b
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 0x10]
add eax, esi
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, 0x35
ja 0x4047db
mov ecx, ebx
push 0x36
push str.__must_be_expressed_in_seconds_since_the_UNIX_epoch._n
call fcn.0040658e
mov edi, 1
jmp 0x40483c
mov dword [esp + 0x18], ebx
push 0
call dword [sym.imp.msvcrt.dll_time]
add esp, 4
jmp 0x404470
mov edi, dword [ebp + 0x28]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x80]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, edi
mov edx, 0x39
call fcn.00403b70
lea ecx, [esp + 0x3c]
test al, al
je 0x404497
push ecx
call dword [sym.imp.msvcrt.dll_gmtime]
jmp 0x40449e
push ecx
call dword [sym.imp.msvcrt.dll_localtime]
add esp, 4
mov ecx, dword [eax + 0x20]
mov dword [esp + 0xa0], ecx
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movaps xmmword [esp + 0x90], xmm1
movaps xmmword [esp + 0x80], xmm0
sub esp, 0x38
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x30], eax
movaps xmm0, xmmword [esp + 0xb8]
movaps xmm1, xmmword [esp + 0xc8]
movups xmmword [esp + 0x20], xmm1
movups xmmword [esp + 0x10], xmm0
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 0x34], 0
call fcn.004065f4
add esp, 0x38
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4046fe
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x1c]
call eax
add esp, 0x10
test eax, eax
je 0x4046fe
mov esi, eax
mov ecx, edi
mov edx, 0x2f
call fcn.00403b70
mov byte [ebx + 0x15], al
mov ecx, ebx
mov dword [esp + 0x10], esi
push esi
call fcn.0040657c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov byte [eax + 0x51], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov byte [eax + 0x54], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov byte [eax + 0x50], 1
mov eax, dword [ebx]
mov dword [esp + 8], ebx
mov ecx, ebx
call dword [eax + 0x14]
mov byte [eax + 0x52], 1
mov dword [esp + 0x78], 0x10
lea ecx, [esp + 0x28]
push 0x10
push edi
call fcn.004066f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x4046a0
nop dword [eax + eax]
lea edx, [eax + 1]
test byte [eax], 1
mov ecx, edx
je 0x4045bd
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax]
test cl, 1
mov dword [esp + 0xc], edx
je 0x4045e0
mov ecx, dword [eax + 4]
jmp 0x4045e2
shr ecx, 1
mov dword [esp + 0x24], ecx
mov byte [esp + 7], 0x3d
mov eax, 1
mov dword [esp + 0x74], eax
lea eax, [esp + 7]
mov dword [esp + 0x70], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
lea ecx, [esp + 0x2c]
call fcn.00406720
cmp eax, 0xffffffff
je 0x404640
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp eax, ebx
mov edx, ebx
cmovb edx, eax
inc eax
cmp ebx, eax
cmovb eax, ebx
lea ecx, [esi + eax]
sub ebx, eax
jmp 0x40464c
xor ecx, ecx
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
sub esp, 0x10
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x60]
movsd qword [esp], xmm0
mov edi, edx
call dword [eax + 0x3c]
test al, al
jne 0x404846
mov ecx, dword [esp + 0xc]
add ecx, 0xb
mov eax, ecx
cmp ecx, dword [esp + 0x14]
jne 0x4045b0
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 1
call dword [eax + 0x28]
movzx edi, al
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40482c
mov ebx, dword [esp + 0x2c]
mov eax, esi
cmp ebx, esi
jne 0x4046eb
jmp 0x404817
add ebx, 0xfffffff4
cmp ebx, esi
je 0x404813
test byte [ebx - 0xc], 1
je 0x4046e0
push dword [ebx - 4]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x4046e0
call fcn.00406660
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], ecx
sub esp, 0x10
movsd xmm0, qword [esp + 0x68]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.004066c6
add esp, 0x10
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0x2e
ja 0x404762
mov ecx, eax
push 0x2f
push str.this_target_does_not_support_assembly_parsing._n
call fcn.0040658e
mov edi, 1
test ebx, ebx
jne 0x404835
jmp 0x40483c
movups xmm0, xmmword [0x4086a4]
movups xmmword [ecx + 0x1f], xmm0
movups xmm0, xmmword [0x408695]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [str.this_target_does_not_support_assembly_parsing._n]
movups xmmword [ecx], xmm0
add dword [eax + 0x10], 0x2f
mov edi, 1
test ebx, ebx
jne 0x404835
jmp 0x40483c
movups xmm0, xmmword [str.invalid_timestamp_]
movups xmmword [eax], xmm0
mov dword [eax + 0xf], 0x2720706d
mov eax, dword [ebx + 0x10]
add eax, 0x13
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, esi
jae 0x404414
mov ecx, ebx
push esi
push edi
call fcn.0040658e
mov ebx, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
cmp ecx, 0x35
jbe 0x404439
movsd xmm0, qword [0x40867c]
movsd qword [eax + 0x2e], xmm0
movups xmm0, xmmword [0x40866e]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x40865e]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.__must_be_expressed_in_seconds_since_the_UNIX_epoch._n]
movups xmmword [eax], xmm0
add dword [ebx + 0x10], 0x36
mov edi, 1
jmp 0x40483c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40483c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x34], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], edi
call fcn.00406660
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], ecx
sub esp, 0x10
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.004066c6
add esp, 0x10
mov esi, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, 0x13
ja 0x4048ad
mov ecx, esi
push 0x14
push str.cant_define_macro_
call fcn.0040658e
mov esi, eax
mov eax, dword [eax + 0x10]
jmp 0x4048c7
movups xmm0, xmmword [str.cant_define_macro_]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0x27206f72
mov eax, dword [esi + 0x10]
add eax, 0x14
mov dword [esi + 0x10], eax
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, edx
jae 0x4048ef
mov ecx, esi
push edx
push dword [esp + 0x38]
call fcn.0040658e
mov esi, eax
mov eax, dword [eax + 0x10]
jmp 0x40490f
test edx, edx
je 0x40490f
push edx
push dword [esp + 0x38]
push eax
mov edi, edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x10]
add eax, edi
mov edi, dword [esp + 0xc]
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, 4
ja 0x404971
mov ecx, esi
push 5
push str.__
call fcn.0040658e
mov esi, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, edi
jb 0x40498d
test edi, edi
je 0x40494f
push edi
push dword [esp + 0x3c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, 1
ja 0x4049a8
mov ecx, esi
push 2
push 0x4070c7
call fcn.0040658e
mov edi, 1
jmp 0x4046b2
mov byte [eax + 4], 0x27
mov dword [eax], 0x203d2027
mov eax, dword [esi + 0x10]
add eax, 5
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, edi
jae 0x404935
mov ecx, esi
push edi
push dword [esp + 0x3c]
call fcn.0040658e
mov esi, eax
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp ecx, 1
jbe 0x404959
mov word [eax], 0xa27
add dword [esi + 0x10], 2
mov edi, 1
jmp 0x4046b2